- napkin
- SimpleComponentizedBuilder
Class
SimpleComponentizedBuilder
A simplified componentized builder that requires no dynamic dependencies.
class SimpleComponentizedBuilder<Component, Router>
Overview
SimpleComponentizedBuilder is a convenience subclass of ComponentizedBuilder for cases where neither the build process nor component creation require runtime dependencies.
Usage
final class MyFeatureBuilder: SimpleComponentizedBuilder<MyFeatureComponent, MyFeatureRouting>,
MyFeatureBuildable {
init(dependency: MyFeatureDependency) {
super.init {
MyFeatureComponent(dependency: dependency)
}
}
override func build(with component: MyFeatureComponent) -> MyFeatureRouting {
let interactor = MyFeatureInteractor()
return MyFeatureRouter(interactor: interactor)
}
}
See Also
ComponentizedBuilder
See Also
Builder
Topics
Creating a Builder
Building
Instance Methods
Relationships
Conforms To
Inherits From