Don't execute 3 panel mode changes in an animation block
This commit is contained in:
parent
2d70a6c1a5
commit
8bbabbacdb
|
@ -15,9 +15,7 @@ class RootSplitViewController: UISplitViewController {
|
||||||
|
|
||||||
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
||||||
super.viewWillTransition(to: size, with: coordinator)
|
super.viewWillTransition(to: size, with: coordinator)
|
||||||
coordinator.animate(alongsideTransition: { [weak self] context in
|
self.coordinator.configureThreePanelMode(for: size)
|
||||||
self?.coordinator.configureThreePanelMode(for: size)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Keyboard Shortcuts
|
// MARK: Keyboard Shortcuts
|
||||||
|
|
Loading…
Reference in New Issue