InlineFactory

public struct InlineFactory<VC, C> : Factory where VC : UIViewController

InlineFactory. Might be useful for the configuration testing.

Associated types

  • Type of UIViewController that Factory can build

    Declaration

    Swift

    public typealias ViewController = VC
  • Context to be passed into UIViewController

    Declaration

    Swift

    public typealias Context = C

Functions

  • Constructor

    Declaration

    Swift

    public init(viewController inlineBock: @autoclosure @escaping () throws -> VC)

    Parameters

    inlineBock

    the block to be called when InlineFactory.build(...) is requested.

  • Constructor

    Declaration

    Swift

    public init(_ inlineBock: @escaping (C) throws -> VC)

    Parameters

    inlineBock

    the block to be called when InlineFactory.build(...) is requested.

  • Declaration

    Swift

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