diff options
author | 2021-12-01 16:28:53 +0300 | |
---|---|---|
committer | 2021-12-01 16:28:53 +0300 | |
commit | 215afc1f5e11e24637c8e03454dbc9df2262a04b (patch) | |
tree | 6902418062ce514872675d8dc669a8e585371829 /Juick/AppDelegate.m | |
parent | 65771b0d70a26aab2c71602390280c41b6bb6862 (diff) |
Fixes for Mac
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; } |