Commit 6dc6a0e3 authored by Carola Nitz's avatar Carola Nitz

VLCAppDelegate: wrap appearance changes in available ios11 block

parent 88d1ca05
......@@ -208,8 +208,10 @@ NSString *const VLCDropboxSessionWasAuthorized = @"VLCDropboxSessionWasAuthorize
[[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[VLCPlaybackNavigationController class]]] setBarTintColor: nil];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setTitleTextAttributes: @{ NSForegroundColorAttributeName : [UIColor whiteColor] }];
[[UINavigationBar appearance] setPrefersLargeTitles:@YES];
[[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[VLCPlaybackNavigationController class]]] setPrefersLargeTitles: @NO];
if (@available(iOS 11.0, *)) {
[[UINavigationBar appearance] setPrefersLargeTitles:@YES];
[[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[VLCPlaybackNavigationController class]]] setPrefersLargeTitles: @NO];
}
// For the edit selection indicators
[[UITabBar appearance] setTintColor:vlcOrange];
[[UITableView appearance] setTintColor:vlcOrange];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment