AbstractFactory
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
UIViewController
thatAbstractFactory
can buildDeclaration
Swift
associatedtype ViewController : UIViewController
-
Context
to be passed intoUIViewController
Declaration
Swift
associatedtype Context
-
prepare()
Extension methodPrepares the
AbstractFactory
Declaration
Swift
mutating func prepare() throws