SplitControllerAdapter
public struct SplitControllerAdapter<VC> : ConcreteContainerAdapter where VC : UISplitViewController
Default ContainerAdapter
for UISplitViewController
-
Declaration
Swift
public init(with splitViewController: VC)
-
Declaration
Swift
public var containedViewControllers: [UIViewController] { get }
-
NB
UISplitViewController
does not support showing primary view controller overlay programmatically out of the box inprimaryOverlay
mode. So all the contained view controllers are considered as visible in the default implementation.Declaration
Swift
public var visibleViewControllers: [UIViewController] { get }
-
NB
UISplitViewController
does not support showing primary view controller overlay programmatically out of the box inprimaryOverlay
mode, so default implementation ofmakeVisible
method wont be able to serve it.Declaration
Swift
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
public func setContainedViewControllers(_ containedViewControllers: [UIViewController], animated: Bool, completion: @escaping (RoutingResult) -> Void)