Skip to content

Commit

Permalink
Catalyst updates
Browse files Browse the repository at this point in the history
  • Loading branch information
enhorn committed Dec 16, 2019
1 parent e53284a commit 7cdc0d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Presentation/DualNavigationControllersSplitDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ open class DualNavigationControllersSplitDelegate: NSObject, UISplitViewControll

/// Returns a signal that will signal when collapsing or expanding. Current value can be nil if the collapsed state cannot be determined reliably yet.
public var isCollapsed: ReadSignal<Bool?> {
#if targetEnvironment(macCatalyst)
return ReadSignal<Bool?>(false)
#else
return isCollapsedProperty.readOnly()
#endif
}

internal func makeMasterNavigationController(_ splitController: UISplitViewController) -> UINavigationController {
Expand Down
1 change: 1 addition & 0 deletions Presentation/UISplitViewController+Presenting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ extension UISplitViewController: PresentingViewController {
}
presenter = nc
viewControllers = [ nc ] + viewControllers.dropFirst()
_ = self.delegate?.targetDisplayModeForAction?(in: self)
default:
fatalError("Not supported")
}
Expand Down

0 comments on commit 7cdc0d3

Please sign in to comment.