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.

Steps

  • pushAsRoot() Extension method

    Replaces all the child view controllers in the UINavigationController‘s children stack

    Declaration

    Swift

    static func pushAsRoot() -> NavigationControllerActions.PushAsRootAction<Self>
  • push() Extension method

    Pushes a child view controller into the UINavigationController‘s children stack

    Declaration

    Swift

    static func push() -> NavigationControllerActions.PushAction<Self>
  • pushReplacingLast() Extension method

    Pushes a child view controller, replacing the existing, into the UINavigationController‘s children stack

    Declaration

    Swift

    static func pushReplacingLast() -> NavigationControllerActions.PushReplacingLastAction<Self>
  • setAsMaster() Extension method

    Presents a view controller as a master in the UISplitViewController

    Declaration

    Swift

    static func setAsMaster() -> SplitViewControllerActions.SetAsMasterAction<Self>
  • pushToDetails() Extension method

    Presents a view controller as a detail in the UISplitViewController, replacing the previous detail.

    Declaration

    Swift

    static func pushToDetails() -> SplitViewControllerActions.PushToDetailsAction<Self>
  • pushOnToDetails() Extension method

    Pushes a view controller onto the detail stack in the UISplitViewController. Requires the root detail view controller to be the UINavigationController

    Declaration

    Swift

    static func pushOnToDetails() -> RouteComposer.SplitViewControllerActions.PushOnToDetailsAction<Self>
  • add(at:replacing:) Extension method

    Adds a UIViewController to a UITabBarController

    • 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 a UITabBarController

    • 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>