-
Declaration
Swift
public typealias ViewController = VC
-
Declaration
Swift
public typealias Context = C
-
The name of a storyboard file
Declaration
Swift
public let name: String
-
The
Bundle
instanceDeclaration
Swift
public let bundle: Bundle?
-
The
UIViewController
identifier in the storyboard. If it is not set, theFactory
will try to create the storyboards initialUIViewController
Declaration
Swift
public let identifier: String?
-
The additional configuration block
Declaration
Swift
public let configuration: ((VC) -> Void)?
-
Constructor
Declaration
Swift
public init(name: String, bundle: Bundle? = nil, identifier: String? = nil, configuration: ((VC) -> Void)? = nil)
Parameters
storyboardName
The name of a storyboard file
bundle
The
Bundle
instance if neededidentifier
The
UIViewController
identifier in the storyboard. If it is not set, theFactory
will try to create the storyboards initialUIViewController
configuration
A 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
public func build(with context: C) throws -> VC