NavigationSingleViewEmbeddingBuilder
open class NavigationSingleViewEmbeddingBuilder<T> : ViewControllerBuilder where T : ViewControllerBuilder
Builder for UINavigationController
instance with a single embedded view. This builder keeps Context
the same as Context
of embedded view builder, thus allowing building a combination of those by passing embedded view Context.
-
NavigationSingleViewEmbeddingBuilder
.Context is identical to embedded view Context.Declaration
Swift
public typealias Context = T.Context
-
Embedded view builder.
Declaration
Swift
public let builder: T
-
Defines how
UINavigationController
should be createdDeclaration
Swift
open var navigationControllerBuilder: () -> UINavigationController
-
Creates
NavigationSingleViewEmbeddingBuilder
from provided embedded view builder.Declaration
Swift
public init(builder: T)
Parameters
builder
Embedded view builder.
-
Builds
UINavigationController
instance with embedded view, which is set in itsviewControllers
property.Throws
Embedded view build errors.Declaration
Swift
open func build(with context: Context) throws -> UINavigationController
Parameters
context
Argument to build embedded view.
Return Value
Created
UINavigationController
.