HasDependencies
public protocol HasDependencies : HasDependenciesProtocol
Use this protocol in your Coordinators to enable automatic dependency injection
-
This is inferred from dependencies property
Declaration
Swift
associatedtype DependeciesType : AppDependenciesProtocol -
Set this with an object that conform to
AppDependenciesProtocol, but never toAppDependenciesProtocoldirectly.Declaration
Swift
var dependencies: DependeciesType? { get set }
-
setDependencies(dependencies:)Extension methodDeclaration
Swift
func setDependencies(dependencies: AppDependenciesProtocol?) -
getDepencencies()Extension methodDeclaration
Swift
func getDepencencies() -> AppDependenciesProtocol?
View on GitHub
Install in Dash
HasDependencies Protocol Reference