From f180c37d1a9fab24dd25887876b69a96d8e5d5c2 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 30 Dec 2024 21:32:18 -0800 Subject: [PATCH] Make sure iPad shows Feeds view on first run. --- iOS/Base.lproj/Main.storyboard | 5 ++--- iOS/SceneDelegate.swift | 9 +++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/iOS/Base.lproj/Main.storyboard b/iOS/Base.lproj/Main.storyboard index beb42c639..ad2c65b9e 100644 --- a/iOS/Base.lproj/Main.storyboard +++ b/iOS/Base.lproj/Main.storyboard @@ -2,7 +2,6 @@ - @@ -159,7 +158,7 @@ - + @@ -432,7 +431,7 @@ - + diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index 5f5ec0514..7bad7ccb1 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -24,6 +24,15 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { UINavigationBar.appearance().scrollEdgeAppearance = UINavigationBarAppearance() let rootViewController = window!.rootViewController as! RootSplitViewController + rootViewController.presentsWithGesture = true + rootViewController.showsSecondaryOnlyButton = true + if AppDefaults.shared.isFirstRun { + // This ensures that the Feeds view shows on first-run. + rootViewController.preferredDisplayMode = .twoBesideSecondary + } else { + rootViewController.preferredDisplayMode = .oneBesideSecondary + } + coordinator = SceneCoordinator(rootSplitViewController: rootViewController) rootViewController.coordinator = coordinator rootViewController.delegate = coordinator