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 }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.
subscript<Key>(key: Key.Type) -> Key.Value where Key : PreviewContextKey { get }