diff options
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r-- | Juick/AppDelegate.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index da72111..51e5df1 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -66,6 +66,12 @@ if (userInfo) { [self parseNotificationPayload:userInfo]; } + UISplitViewController *splitViewController = (UISplitViewController *)[self window].rootViewController; +#if TARGET_OS_MACCATALYST + splitViewController.primaryBackgroundStyle = UISplitViewControllerBackgroundStyleSidebar; +#else + splitViewController.preferredDisplayMode = UISplitViewControllerDisplayModeAllVisible; +#endif return YES; } |