colorScheme(_:)
Sets this view’s color scheme.
Declaration
nonisolated func colorScheme(_ colorScheme: ColorScheme) -> some View
Parameters
- colorScheme:
The color scheme for this view.
Return Value
A view that sets this view’s color scheme.
Discussion
Use colorScheme(_:) to set the color scheme for the view to which you apply it and any subviews.