Generic Instance Method

environmentObject(_:)

No overview available.

Declaration

func environmentObject<B>(_ bindable: B) -> some View where B : ObservableObject

See Also

Setting the Environment Values of a View

func environment<V>(WritableKeyPath<EnvironmentValues, V>, V) -> View

Sets the environment value indicated by a key path to the given value.

func transformEnvironment<V>(WritableKeyPath<EnvironmentValues, V>, transform: (inout V) -> Void) -> View

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