Generic Instance Method

transformEnvironment(_:transform:)

Transforms the environment value indicated by a key path with the given function.

Declaration

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