AbstractFactory
@MainActor
public protocol AbstractFactory
Base protocol for all types of factories.
An instance that extends AbstractFactory builds a UIViewController that will later be
integrated into the stack by the Router
-
Type of
UIViewControllerthatAbstractFactorycan buildDeclaration
Swift
associatedtype ViewController : UIViewController -
Contextto be passed intoUIViewControllerDeclaration
Swift
associatedtype Context
-
prepare()Extension methodPrepares the
AbstractFactoryDeclaration
Swift
@MainActor mutating func prepare() throws