Don't transition to three panel mode when just getting screenshots for the background
This commit is contained in:
parent
280f754217
commit
34d0142dbc
|
@ -14,7 +14,9 @@ class RootSplitViewController: UISplitViewController {
|
||||||
var coordinator: SceneCoordinator!
|
var coordinator: SceneCoordinator!
|
||||||
|
|
||||||
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
||||||
|
if UIApplication.shared.applicationState != .background {
|
||||||
self.coordinator.configureThreePanelMode(for: size)
|
self.coordinator.configureThreePanelMode(for: size)
|
||||||
|
}
|
||||||
super.viewWillTransition(to: size, with: coordinator)
|
super.viewWillTransition(to: size, with: coordinator)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue