SplitControllerAdapter
@MainActor
public struct SplitControllerAdapter<VC> : ConcreteContainerAdapter where VC : UISplitViewController
Default ContainerAdapter for UISplitViewController
-
Declaration
Swift
@MainActor public init(with splitViewController: VC) -
Declaration
Swift
@MainActor public var containedViewControllers: [UIViewController] { get } -
NB
UISplitViewControllerdoes not support showing primary view controller overlay programmatically out of the box inprimaryOverlaymode. So all the contained view controllers are considered as visible in the default implementation.Declaration
Swift
@MainActor public var visibleViewControllers: [UIViewController] { get } -
NB
UISplitViewControllerdoes not support showing primary view controller overlay programmatically out of the box inprimaryOverlaymode, so default implementation ofmakeVisiblemethod wont be able to serve it.Declaration
Swift
@MainActor public func makeVisible(_ viewController: UIViewController, animated: Bool, completion: @escaping (RoutingResult) -> Void) -
Replacing of the child view controllers is not fully supported by the implementation of
UISplitViewController. Only some common cases are covered by this method.NB
https://developer.apple.com/documentation/uikit/uisplitviewcontroller: Quote: When designing your split view interface, it is best to install primary and secondary view controllers that do not change. A common technique is to install navigation controllers in both positions and then push and pop new content as needed.
Declaration
Swift
@MainActor public func setContainedViewControllers(_ containedViewControllers: [UIViewController], animated: Bool, completion: @escaping (RoutingResult) -> Void)