ContainerAction

public protocol ContainerAction : AbstractAction where Self.ViewController : ContainerViewController

Represents an action to be used by a ContainerFactory to build it’s children view controller stack

Methods to implement

  • perform(embedding:in:) Default implementation

    If current UIViewController has to be pushed/added/etc to the existing stack of the view controllers, this method should be called instead.

    Default Implementation

    Declaration

    Swift

    func perform(embedding viewController: UIViewController, in childViewControllers: inout [UIViewController]) throws

    Parameters

    viewController

    The UIViewController to be embedded.

    childViewControllers

    The stack of the UIViewControllers in the current container.