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

transformPreference(_:_:)

Applies a transformation to a preference value.

Declaration 宣言

func transformPreference<K>(_ key: K.Type = K.self, _ callback: @escaping (inout K.Value) -> Void) -> some View where K : PreferenceKey