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 InstanceViewBuilder object with provided closure.

    Declaration

    Swift

    public init(_ closure: @escaping () -> T)

    Parameters

    closure

    builds instance of a View, when called.

  • Builds instance of a View.

    Declaration

    Swift

    open func build(with context: ()) -> T

    Parameters

    context

    empty tuple, this builder does not require arguments.

    Return Value

    built view.