diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 1ff2dbd90..7826e09cb 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -940,13 +940,12 @@ extension SceneCoordinator: UISplitViewControllerDelegate { } func splitViewController(_ splitViewController: UISplitViewController, separateSecondaryFrom primaryViewController: UIViewController) -> UIViewController? { - if masterNavigationController.viewControllers.count == 3 { - return nil - } else { + if currentArticle == nil { let articleViewController = UIStoryboard.main.instantiateController(ofType: ArticleViewController.self) articleViewController.coordinator = self return articleViewController } + return nil } } diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index 82cb4e8bb..05df42d02 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -58,6 +58,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { func sceneWillEnterForeground(_ scene: UIScene) { appDelegate.prepareAccountsForForeground() + self.coordinator.configureThreePanelMode(for: window!.frame.size) } func stateRestorationActivity(for scene: UIScene) -> NSUserActivity? {