NilFactory

public struct NilFactory<VC, C> : Factory, NilEntity where VC : UIViewController

The dummy struct used to represent the Factory that does not build anything. Its only purpose is to provide the type safety checks for the StepAssembly.

For example, the UIViewController of the step was already loaded and integrated into a stack by a storyboard in a previous step.

Associated types

  • Declaration

    Swift

    public typealias ViewController = VC
  • Declaration

    Swift

    public typealias Context = C

Methods

  • Constructor

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    public func prepare(with context: C) throws
  • Declaration

    Swift

    public func build(with context: C) throws -> VC