Rewrite three panel mode so that background screenshooting will work.

This commit is contained in:
Maurice Parker
2019-11-20 16:41:13 -06:00
parent 6d407a0f3a
commit 7c947b935d
5 changed files with 100 additions and 99 deletions

View File

@@ -22,9 +22,7 @@ class RootSplitViewController: UISplitViewController {
}
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
if UIApplication.shared.applicationState != .background {
self.coordinator.configureThreePanelMode(for: size)
}
self.coordinator.configurePanelMode(for: size)
super.viewWillTransition(to: size, with: coordinator)
}