From 8753790a192e772f460af4ce3d115c7ae78b5bc2 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 2 Aug 2019 10:34:32 -0500 Subject: [PATCH] Fix bug that lost detail view when transitioning to three panel mode --- iOS/AppCoordinator.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/iOS/AppCoordinator.swift b/iOS/AppCoordinator.swift index 69526a668..be2af07e1 100644 --- a/iOS/AppCoordinator.swift +++ b/iOS/AppCoordinator.swift @@ -913,12 +913,6 @@ private extension AppCoordinator { } else { - masterTimelineViewController!.navigationItem.leftBarButtonItem = nil - - let subSplit = ensureDoubleSplit() - let masterTimelineNavController = subSplit.viewControllers.first as! UINavigationController - masterTimelineNavController.viewControllers = [masterTimelineViewController!] - let controller: UIViewController = { if let result = detailViewController { return result @@ -927,6 +921,12 @@ private extension AppCoordinator { } }() + masterTimelineViewController!.navigationItem.leftBarButtonItem = nil + + let subSplit = ensureDoubleSplit() + let masterTimelineNavController = subSplit.viewControllers.first as! UINavigationController + masterTimelineNavController.viewControllers = [masterTimelineViewController!] + let navController = addNavControllerIfNecessary(controller, showButton: false) subSplit.showDetailViewController(navController, sender: self)