From e476cc407c21bff99137841bdef796deccde42da Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 30 Aug 2019 19:55:49 -0700 Subject: [PATCH] Fix crash on pre-iOS 13 --- Limelight/ViewControllers/SettingsViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index 6211e1e..abf9814 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -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; }