EnvironmentValues

public struct EnvironmentValues

The central registry of EnvironmentKey and their values.

  • The shared context store.

    Declaration

    Swift

    public static var shared: EnvironmentValues
  • Get the value of a context key.

    Declaration

    Swift

    public subscript<K>(key: K.Type) -> K.Value where K : EnvironmentKey { get set }