InlineFactory
@MainActor
public struct InlineFactory<VC, C> : Factory where VC : UIViewController
InlineFactory. Might be useful for the configuration testing.
-
Type of
UIViewControllerthatFactorycan buildDeclaration
Swift
public typealias ViewController = VC -
Contextto be passed intoUIViewControllerDeclaration
Swift
public typealias Context = C
-
Constructor
Declaration
Swift
@MainActor public init(viewController inlineBock: @autoclosure @escaping () throws -> VC)Parameters
inlineBockthe block to be called when
InlineFactory.build(...)is requested. -
Constructor
Declaration
Swift
@MainActor public init(_ inlineBock: @escaping (C) throws -> VC)Parameters
inlineBockthe block to be called when
InlineFactory.build(...)is requested. -
Declaration
Swift
@MainActor public func build(with context: C) throws -> VC