mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 03:37:41 +00:00
Apply saved display mode in willConnectTo
This commit is contained in:
1 file changed
+1
-8
@@ -24,14 +24,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
let rootViewController = window!.rootViewController as! RootSplitViewController
|
||||
rootViewController.presentsWithGesture = true
|
||||
rootViewController.showsSecondaryOnlyButton = true
|
||||
rootViewController.preferredDisplayMode = .oneBesideSecondary
|
||||
|
||||
Task { @MainActor in
|
||||
// Ensure Feeds view shows on iPad — otherwise the UI may be empty.
|
||||
if UIDevice.current.userInterfaceIdiom == .pad {
|
||||
rootViewController.show(.primary)
|
||||
}
|
||||
}
|
||||
rootViewController.preferredDisplayMode = UISplitViewController.DisplayMode(rawValue: AppDefaults.shared.splitViewPreferredDisplayMode) ?? .oneBesideSecondary
|
||||
|
||||
coordinator = SceneCoordinator(rootSplitViewController: rootViewController)
|
||||
rootViewController.coordinator = coordinator
|
||||
|
||||
Reference in new issue
Block a user