TabBarEmbeddingBuilder
open class TabBarEmbeddingBuilder : ViewControllerBuilder
Builder for UITabBarController
instance.
-
Defines how
UITabBarController
should be created.Declaration
Swift
open var tabBarControllerBuilder: () -> UITabBarController
-
Creates
TabBarEmbeddingBuilder
.Declaration
Swift
public init(tabBarBuilder: @escaping () -> UITabBarController = { .init() })
-
Builds
UITabBarController
from provided array of views, setting them inviewControllers
property ofUITabBarController
.Declaration
Swift
open func build(with context: [ViewController]) -> UITabBarController
Parameters
context
array of views to set in
viewControllers
property.Return Value
created
UITabBarController
.