NilFactory

@MainActor
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

    @MainActor
    public init()
  • Declaration

    Swift

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

    Swift

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

Shorthands

  • 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.

    Declaration

    Swift

    @MainActor
    static var nilFactory: `Self` { get }