Instance Subscript

subscript(_:)

Returns the context’s value for a key, or a the key’s default value if the context doesn’t define a value for the key.

Declaration 宣言

subscript<Key>(key: Key.Type) -> Key.Value where Key : PreviewContextKey { get }