UnwrappedInject
@propertyWrapper
public class UnwrappedInject<Dependency> : InjectPropertyWrapper<Dependency, Void>
@UnwrappedInject
property wrapper.
-
Injection scope.
Declaration
Swift
public var scope: Scope
-
Create a
UnwrappedInject
property wrapper.Declaration
Swift
public convenience init(_ scope: Scope = .singleton, group: DependencyGroupKey? = nil)
Parameters
scope
Injection scope.
group
Dependency group key.
-
Property wrapper stored dependency.
Declaration
Swift
public var wrappedValue: Dependency { get }