AbstractAction
public protocol AbstractAction
Represents any action that has to be applied to the UIViewController
after it has
been built (eg: push to navigation stack, present modally, push to tab, etc)
-
Type of the
UIViewController
thatAction
can start from.Declaration
Swift
associatedtype ViewController : UIViewController
-
Performs provided action to the view controller.
NB: completion MUST be called in the implementation.
Declaration
Swift
func perform(with viewController: UIViewController, on existingController: ViewController, animated: Bool, completion: @escaping (_: RoutingResult) -> Void)
Parameters
viewController
UIViewController
instance that should appear on top of the stack after theAction
is applied.existingController
UIViewController
instance to start from.animated
animated
completion
called once the action is applied. Returns the view controller, which will appear on the top of the stack.