Fix switching back to previous navigation mode

This commit is contained in:
Shadowfacts 2023-09-29 17:18:29 -04:00
parent 7a2dc7d3c4
commit ad4e112e96
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ class MainSplitViewController: UISplitViewController {
guard mode != navigationMode else {
return
}
navigationMode = mode
let viewControllers = secondaryNavController.viewControllers
secondaryNavController.viewControllers = []
// Setting viewControllers = [] doesn't remove the VC views from their superviews immediately,