Correctly handle showing the detail view when the root view controller is collapsed
This commit is contained in:
parent
e22088b284
commit
9e0a4aed00
|
@ -846,6 +846,8 @@ private extension AppCoordinator {
|
||||||
if isThreePanelMode {
|
if isThreePanelMode {
|
||||||
let targetSplit = ensureDoubleSplit()
|
let targetSplit = ensureDoubleSplit()
|
||||||
targetSplit.showDetailViewController(controller, sender: self)
|
targetSplit.showDetailViewController(controller, sender: self)
|
||||||
|
} else if rootSplitViewController.isCollapsed {
|
||||||
|
rootSplitViewController.showDetailViewController(controller, sender: self)
|
||||||
} else {
|
} else {
|
||||||
if let shimController = rootSplitViewController.viewControllers.last {
|
if let shimController = rootSplitViewController.viewControllers.last {
|
||||||
shimController.replaceChildAndPinView(controller)
|
shimController.replaceChildAndPinView(controller)
|
||||||
|
|
Loading…
Reference in New Issue