forked from shadowfacts/Tusker
Fix switching back to previous navigation mode
This commit is contained in:
parent
7a2dc7d3c4
commit
ad4e112e96
|
@ -117,6 +117,8 @@ class MainSplitViewController: UISplitViewController {
|
||||||
guard mode != navigationMode else {
|
guard mode != navigationMode else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
navigationMode = mode
|
||||||
|
|
||||||
let viewControllers = secondaryNavController.viewControllers
|
let viewControllers = secondaryNavController.viewControllers
|
||||||
secondaryNavController.viewControllers = []
|
secondaryNavController.viewControllers = []
|
||||||
// Setting viewControllers = [] doesn't remove the VC views from their superviews immediately,
|
// Setting viewControllers = [] doesn't remove the VC views from their superviews immediately,
|
||||||
|
|
Loading…
Reference in New Issue