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

Associated types

  • Type of UIViewController that AbstractFactory can build

    Declaration

    Swift

    associatedtype ViewController : UIViewController
  • Context to be passed into UIViewController

    Declaration

    Swift

    associatedtype Context

Methods to implement

Available where Context == Any?

  • prepare() Extension method

    Prepares the AbstractFactory

    Declaration

    Swift

    mutating func prepare() throws

Available where Context == Void

  • prepare() Extension method

    Prepares the AbstractFactory

    Declaration

    Swift

    mutating func prepare() throws