Contents

transformEnvironment(_:transform:)

Transforms the environment value of the specified key path with the given function.

Declaration

nonisolated func transformEnvironment<V>(_ keyPath: WritableKeyPath<EnvironmentValues, V>, transform: @escaping (inout V) -> Void) -> some View

See Also

Modifying the environment of a view