Contents

transformPreference(_:_:)

Applies a transformation to a preference value.

Declaration

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

See Also

Setting preferences