Environment

@propertyWrapper
public class Environment<Value> : DynamicProperty

References and observes environment values set by the framework.

Currently supported environment values are:

  • presentationMode
  • Declaration

    Swift

    public init(_ keyPath: KeyPath<EnvironmentValues, Value>)
  • The internal value of this wrapper type.

    Declaration

    Swift

    public var wrappedValue: Value { get set }