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
-
perform(embedding:
Default implementationin: ) 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
UIViewController
s in the current container.