🔸environment value

SwiftUIviewenvironment ⟩ value

// read the color scheme (an environment value) of the current view
@Environment(\.colorScheme) var colorScheme: ColorScheme
  • dismiss:An action that dismisses the current presentation.

Last updated

Was this helpful?