Skip to content

Add View.onPreferenceChange Support #925

Description

@Dark-Existed

Description

nonisolated
func onPreferenceChange<K>(
    _ key: K.Type = K.self,
    perform action: @escaping (K.Value) -> Void
) -> some View where K : PreferenceKey, K.Value : Equatable

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: data-flowState, binding, environment, preference, observation, or property data flow.type: featureNew API, behavior, platform support, or user-facing capability.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions