ContainerViewController
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
static func pushAsRoot() -> NavigationControllerActions.PushAsRootAction<Self>
-
push()
Extension methodPushes a child view controller into the
UINavigationController
‘s children stackDeclaration
Swift
static func push() -> NavigationControllerActions.PushAction<Self>
-
pushReplacingLast()
Extension methodPushes a child view controller, replacing the existing, into the
UINavigationController
‘s children stackDeclaration
Swift
static func pushReplacingLast() -> NavigationControllerActions.PushReplacingLastAction<Self>
-
setAsMaster()
Extension methodPresents a view controller as a master in the
UISplitViewController
Declaration
Swift
static func setAsMaster() -> SplitViewControllerActions.SetAsMasterAction<Self>
-
pushToDetails()
Extension methodPresents a view controller as a detail in the
UISplitViewController
, replacing the previous detail.Declaration
Swift
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 theUINavigationController
Declaration
Swift
static func pushOnToDetails() -> RouteComposer.SplitViewControllerActions.PushOnToDetailsAction<Self>
-
add(at:
Extension methodreplacing: ) Adds a
UIViewController
to aUITabBarController
- tabIndex: index of a tab.
- replacing: should be set to
true
if 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
static func add(at tabIndex: Int, replacing: Bool = false) -> TabBarControllerActions.AddTabAction<Self>
-
add(at:
Extension method) Adds a
UIViewController
to aUITabBarController
- tabIndex: index of a tab. If condition has not been passed, a view controller will be added after the latest one.
Declaration
Swift
static func add(at tabIndex: Int? = nil) -> TabBarControllerActions.AddTabAction<Self>