From 9e0a4aed00bb7dbb4ecda934c523e10274efb7bd Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 1 Aug 2019 20:06:55 -0500 Subject: [PATCH] Correctly handle showing the detail view when the root view controller is collapsed --- iOS/AppCoordinator.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iOS/AppCoordinator.swift b/iOS/AppCoordinator.swift index 0df3dcf8b..77a685214 100644 --- a/iOS/AppCoordinator.swift +++ b/iOS/AppCoordinator.swift @@ -846,6 +846,8 @@ private extension AppCoordinator { if isThreePanelMode { let targetSplit = ensureDoubleSplit() targetSplit.showDetailViewController(controller, sender: self) + } else if rootSplitViewController.isCollapsed { + rootSplitViewController.showDetailViewController(controller, sender: self) } else { if let shimController = rootSplitViewController.viewControllers.last { shimController.replaceChildAndPinView(controller)