Environment
@propertyWrapper
public struct Environment<K> : CustomReflectable where K : EnvironmentKey
Keys marked as exported are expected to be set by an action before it finishes.
ImportedContext
checks whether a key has been registered by a previous ExportedContext
.
-
Declaration
Swift
public init(_ key: K.Type)
-
Gets and sets the value in the shared
ContextValues
instance.Declaration
Swift
public var wrappedValue: K.Value { get set }
-
Declaration
Swift
public var customMirror: Mirror { get }