LazyInjected
@propertyWrapper
public struct LazyInjected<Service>
Lazy injection property wrapper. Note that embedded container and name properties will be used if set prior to service instantiation.
Wrapped dependent service is not resolved until service is accessed.
-
Undocumented
Declaration
Swift
public var container: Resolver? -
Undocumented
Declaration
Swift
public var name: Resolver.Name? -
Undocumented
Declaration
Swift
public var args: Any? -
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
public var isEmpty: Bool { get } -
Undocumented
Declaration
Swift
public var wrappedValue: Service { mutating get set } -
Undocumented
Declaration
Swift
public var projectedValue: LazyInjected<Service> { get set } -
Undocumented
Declaration
Swift
public mutating func release()
LazyInjected Structure Reference