-
Declaration
Swift
public typealias ViewController = VC -
Declaration
Swift
public typealias Context = C
-
The name of a storyboard file
Declaration
Swift
@MainActor public let name: String -
The
BundleinstanceDeclaration
Swift
@MainActor public let bundle: Bundle? -
The
UIViewControlleridentifier in the storyboard. If it is not set, theFactorywill try to create the storyboards initialUIViewControllerDeclaration
Swift
@MainActor public let identifier: String? -
The additional configuration block
Declaration
Swift
@MainActor public let configuration: ((VC) -> Void)?
-
Constructor
Declaration
Swift
@MainActor public init(name: String, bundle: Bundle? = nil, identifier: String? = nil, configuration: ((VC) -> Void)? = nil)Parameters
storyboardNameThe name of a storyboard file
bundleThe
Bundleinstance if neededidentifierThe
UIViewControlleridentifier in the storyboard. If it is not set, theFactorywill try to create the storyboards initialUIViewControllerconfigurationA block of code that will be used for the extended configuration of the created
UIViewController. Can be used for a quick configuration instead ofContextTask. -
Declaration
Swift
@MainActor public func build(with context: C) throws -> VC
-
The
Factorythat creates aUIViewControllerfrom a storyboard.Declaration
Swift
@MainActor static func storyboardFactory(name: String, bundle: Bundle? = nil, identifier: String? = nil, configuration: ((VC) -> Void)? = nil) -> StoryboardFactory<VC, C>Parameters
storyboardNameThe name of a storyboard file
bundleThe
Bundleinstance if neededidentifierThe
UIViewControlleridentifier in the storyboard. If it is not set, theFactorywill try to create the storyboards initialUIViewControllerconfigurationA block of code that will be used for the extended configuration of the created
UIViewController. Can be used for a quick configuration instead ofContextTask.