Fix bug that lost detail view when transitioning to three panel mode

This commit is contained in:
Maurice Parker 2019-08-02 10:34:32 -05:00
parent 54f6607621
commit 8753790a19
1 changed files with 6 additions and 6 deletions

View File

@ -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)