Instance Method インスタンスメソッド

preference(key:value:)

Sets a value for the given preference.

Declaration 宣言

func preference<K>(key: K.Type = K.self, value: K.Value) -> some View where K : PreferenceKey