From 1ef8945d10f07c40a7d220148dc59326d021760c Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 10 Jan 2026 17:15:15 +0800 Subject: [PATCH] Apply saved display mode in willConnectTo --- iOS/SceneDelegate.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index b03aed97b..8d9a5c035 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -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