Don't execute 3 panel mode changes in an animation block

This commit is contained in:
Maurice Parker 2019-10-30 14:38:39 -05:00
parent 2d70a6c1a5
commit 8bbabbacdb
1 changed files with 1 additions and 3 deletions

View File

@ -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