Reformat statement
This commit is contained in:
parent
9768d8ca55
commit
43d0d0c889
|
@ -75,7 +75,9 @@ class AppCoordinator: NSObject, UndoableCommandRunner {
|
||||||
}
|
}
|
||||||
|
|
||||||
var isThreePanelMode: Bool {
|
var isThreePanelMode: Bool {
|
||||||
return rootSplitViewController.traitCollection.userInterfaceIdiom == .pad && !rootSplitViewController.isCollapsed && rootSplitViewController.displayMode == .allVisible
|
return rootSplitViewController.traitCollection.userInterfaceIdiom == .pad &&
|
||||||
|
!rootSplitViewController.isCollapsed &&
|
||||||
|
rootSplitViewController.displayMode == .allVisible
|
||||||
}
|
}
|
||||||
|
|
||||||
var rootNode: Node {
|
var rootNode: Node {
|
||||||
|
@ -607,14 +609,14 @@ class AppCoordinator: NSObject, UndoableCommandRunner {
|
||||||
|
|
||||||
extension AppCoordinator: UISplitViewControllerDelegate {
|
extension AppCoordinator: UISplitViewControllerDelegate {
|
||||||
|
|
||||||
func splitViewController(_ svc: UISplitViewController, willChangeTo displayMode: UISplitViewController.DisplayMode) {
|
func splitViewController(_ splitViewController: UISplitViewController, willChangeTo displayMode: UISplitViewController.DisplayMode) {
|
||||||
guard rootSplitViewController.traitCollection.userInterfaceIdiom == .pad && !rootSplitViewController.isCollapsed else {
|
guard splitViewController.traitCollection.userInterfaceIdiom == .pad && !splitViewController.isCollapsed else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if rootSplitViewController.displayMode != .allVisible && displayMode == .allVisible {
|
if splitViewController.displayMode != .allVisible && displayMode == .allVisible {
|
||||||
transitionToThreePanelMode()
|
transitionToThreePanelMode()
|
||||||
}
|
}
|
||||||
if rootSplitViewController.displayMode == .allVisible && displayMode != .allVisible {
|
if splitViewController.displayMode == .allVisible && displayMode != .allVisible {
|
||||||
transitionFromThreePanelMode()
|
transitionFromThreePanelMode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue