WeakLazyInjected
@propertyWrapper
public struct WeakLazyInjected<Service> where Service : AnyObject
Injects and resolves an optional service when accessed for the first time and deallocates it when there is no strong reference left to it.
-
A wrapped value.
Declaration
Swift
public var wrappedValue: Service? { mutating get set }