From 6ed1c278564fd6d30a4a0fcf36e918eb3929c4f4 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 1 Dec 2019 12:04:28 -0600 Subject: [PATCH] Correct split view collapse logic for when running side by side. --- iOS/SceneCoordinator.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index cd951f4e2..668ee99c0 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -1089,11 +1089,12 @@ extension SceneCoordinator: UISplitViewControllerDelegate { } if let articleViewController = (secondaryViewController as? UINavigationController)?.topViewController as? ArticleViewController { - masterNavigationController.pushViewController(articleViewController, animated: false) - return false + if currentArticle != nil { + masterNavigationController.pushViewController(articleViewController, animated: false) + } } - return currentArticle == nil + return true } func splitViewController(_ splitViewController: UISplitViewController, separateSecondaryFrom primaryViewController: UIViewController) -> UIViewController? {