NavigationEmbeddingBuilder

open class NavigationEmbeddingBuilder : ViewControllerBuilder

Builder for UINavigationController instance with array of views.

  • Defines how UINavigationController should be created.

    Declaration

    Swift

    open var navigationControllerBuilder: () -> UINavigationController
  • Creates NavigationEmbeddingBuilder.

    Declaration

    Swift

    public init(navigationBuilder: @escaping () -> UINavigationController = { .init() })
  • Builds UINavigationController from provided array of views, setting them in viewControllers property of UINavigationController.

    Declaration

    Swift

    open func build(with context: [ViewController]) -> UINavigationController

    Parameters

    context

    Array of views to set in viewControllers property.

    Return Value

    Created UINavigationController.