subscript<Key>(Key.Type) -> Key.Value
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.
Availability 有効性
Technology
protocol PreviewContext
subscript<Key>(Key.Type) -> Key.Value
func previewContext <C>(C) -> some View
protocol PreviewContextKey