AbstractAction
@MainActor
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
UIViewControllerthatActioncan start from.Declaration
Swift
associatedtype ViewController : UIViewController
-
Performs provided action to the view controller.
NB: completion MUST be called in the implementation.
Declaration
Swift
@MainActor func perform(with viewController: UIViewController, on existingController: ViewController, animated: Bool, completion: @escaping (_: RoutingResult) -> Void)Parameters
viewControllerUIViewControllerinstance that should appear on top of the stack after theActionis applied.existingControllerUIViewControllerinstance to start from.animatedanimated
completioncalled once the action is applied. Returns the view controller, which will appear on the top of the stack.