🔰view environment

╱🚧 under construction

SwiftUIview ⟩ environment

A view inherits its environment from its container view

As a result, you can configure a entire hierarchy of views by modifying the environment of the group’s container.

// read values from environment
@Environment(\.colorScheme) var colorScheme: ColorScheme

Last updated

Was this helpful?