Sets the view’s color scheme.
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 colorScheme(_ colorScheme: Color Scheme) -> some View
Parameters
colorScheme
The color scheme for this view.
Return Value
A view that sets this view’s color scheme.