No overview available.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func environmentObject<B>(_ bindable: B) -> some View where B : Observable Object
No overview available.
SDKs
Framework
func environmentObject<B>(_ bindable: B) -> some View where B : Observable Object
func environment<V>(Writable Key Path<Environment Values, V>, V) -> View
Sets the environment value indicated by a key path to the given value.
func transform Environment<V>(Writable Key Path<Environment Values, V>, transform: (inout V) -> Void) -> View
Transforms the environment value indicated by a key path with the given function.