Fix crash on pre-iOS 13

This commit is contained in:
Cameron Gutman
2019-08-30 19:55:49 -07:00
parent f2e03bbf1f
commit e476cc407c
@@ -16,6 +16,9 @@
NSInteger _bitrate; NSInteger _bitrate;
Boolean _adjustedForSafeArea; Boolean _adjustedForSafeArea;
} }
@dynamic overrideUserInterfaceStyle;
static NSString* bitrateFormat = @"Bitrate: %.1f Mbps"; static NSString* bitrateFormat = @"Bitrate: %.1f Mbps";
static const int bitrateTable[] = { static const int bitrateTable[] = {
500, 500,
@@ -108,7 +111,7 @@ static const int bitrateTable[] = {
[super viewDidLoad]; [super viewDidLoad];
// Always run settings in dark mode because we want the light fonts // 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; self.overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
} }