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