mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-10 00:50:55 +01:00
Prevent the three panel configuration code from being called too fast when entering the background
This commit is contained in:
parent
35226b4af9
commit
8a018acc00
@ -15,7 +15,9 @@ class RootSplitViewController: UISplitViewController {
|
|||||||
|
|
||||||
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
||||||
coordinator.animate(alongsideTransition: { [weak self] context in
|
coordinator.animate(alongsideTransition: { [weak self] context in
|
||||||
|
if UIApplication.shared.applicationState != .background {
|
||||||
self?.coordinator.configureThreePanelMode(for: size)
|
self?.coordinator.configureThreePanelMode(for: size)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user