ContainerViewController
@MainActor
public protocol ContainerViewController : RoutingInterceptable
All the container view controllers should conform to this protocol.
All the methods ContainerViewController supports are implemented in corresponding ContainerAdapter
provided by ContainerAdapterLocator.
-
pushAsRoot()Extension methodReplaces all the child view controllers in the
UINavigationController‘s children stackDeclaration
Swift
@MainActor static func pushAsRoot() -> NavigationControllerActions.PushAsRootAction<Self> -
push()Extension methodPushes a child view controller into the
UINavigationController‘s children stackDeclaration
Swift
@MainActor static func push() -> NavigationControllerActions.PushAction<Self> -
pushReplacingLast()Extension methodPushes a child view controller, replacing the existing, into the
UINavigationController‘s children stackDeclaration
Swift
@MainActor static func pushReplacingLast() -> NavigationControllerActions.PushReplacingLastAction<Self> -
setAsMaster()Extension methodPresents a view controller as a master in the
UISplitViewControllerDeclaration
Swift
@MainActor static func setAsMaster() -> SplitViewControllerActions.SetAsMasterAction<Self> -
pushToDetails()Extension methodPresents a view controller as a detail in the
UISplitViewController, replacing the previous detail.Declaration
Swift
@MainActor static func pushToDetails() -> SplitViewControllerActions.PushToDetailsAction<Self> -
pushOnToDetails()Extension methodPushes a view controller onto the detail stack in the
UISplitViewController. Requires the root detail view controller to be theUINavigationControllerDeclaration
Swift
@MainActor static func pushOnToDetails() -> RouteComposer.SplitViewControllerActions.PushOnToDetailsAction<Self> -
add(at:Extension methodreplacing: ) Adds a
UIViewControllerto aUITabBarController- tabIndex: index of a tab.
- replacing: should be set to
trueif an existing view controller should be replaced. If condition has not been passed, a view controller will be added after the latest one.
Declaration
Swift
@MainActor static func add(at tabIndex: Int, replacing: Bool = false) -> TabBarControllerActions.AddTabAction<Self> -
add(at:Extension method) Adds a
UIViewControllerto aUITabBarController- tabIndex: index of a tab. If condition has not been passed, a view controller will be added after the latest one.
Declaration
Swift
@MainActor static func add(at tabIndex: Int? = nil) -> TabBarControllerActions.AddTabAction<Self>