mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
Fix crash on pre-iOS 13
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
NSInteger _bitrate;
|
||||
Boolean _adjustedForSafeArea;
|
||||
}
|
||||
|
||||
@dynamic overrideUserInterfaceStyle;
|
||||
|
||||
static NSString* bitrateFormat = @"Bitrate: %.1f Mbps";
|
||||
static const int bitrateTable[] = {
|
||||
500,
|
||||
@@ -108,7 +111,7 @@ static const int bitrateTable[] = {
|
||||
[super viewDidLoad];
|
||||
|
||||
// Always run settings in dark mode because we want the light fonts
|
||||
if (@available(iOS 12.0, tvOS 12.0, *)) {
|
||||
if (@available(iOS 13.0, tvOS 13.0, *)) {
|
||||
self.overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user