๐Ÿ”ฐview environment

โ•ฑ๐Ÿšง under construction

SwiftUI โŸฉ view โŸฉ 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?