Protocol
EmptyDependency
A dependency protocol for root napkins that require no parent dependencies.
protocol EmptyDependency : Dependency
Overview
Use EmptyDependency when creating the root napkin of your application, which has no parent to provide dependencies.
Usage
The root component typically conforms to EmptyDependency via EmptyComponent:
final class AppComponent: EmptyComponent, RootDependency {
// Define root-level dependencies here
}
Or create a custom root component:
final class AppComponent: Component<EmptyDependency>, RootDependency {
init() {
super.init(dependency: EmptyComponent())
}
}
See Also
Dependency
See Also
EmptyComponent
Relationships
Inherits From
Conforming Types