Correct split view collapse logic for when running side by side.
This commit is contained in:
parent
87a82eb290
commit
6ed1c27856
|
@ -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? {
|
||||
|
|
Loading…
Reference in New Issue