InlineFactory
public struct InlineFactory<VC, C> : Factory where VC : UIViewController
InlineFactory
. Might be useful for the configuration testing.
-
Type of
UIViewController
thatFactory
can buildDeclaration
Swift
public typealias ViewController = VC
-
Context
to be passed intoUIViewController
Declaration
Swift
public typealias Context = C
-
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