InstanceViewBuilder
open class InstanceViewBuilder<T> : ViewControllerBuilder where T : ViewController
Class, that can be used to build a View using provided closure.
-
Builds a
View.Declaration
Swift
public let closure: () -> T -
Creates
InstanceViewBuilderobject with provided closure.Declaration
Swift
public init(_ closure: @escaping () -> T)Parameters
closurebuilds instance of a
View, when called. -
Builds instance of a
View.Declaration
Swift
open func build(with context: ()) -> TParameters
contextempty tuple, this builder does not require arguments.
Return Value
built view.
View on GitHub
Install in Dash
InstanceViewBuilder Class Reference