---
title: "colorScheme(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/colorscheme(_:)"
---

# colorScheme(_:)

Sets this view’s color scheme.

## Declaration

```swift
nonisolated func colorScheme(_ colorScheme: ColorScheme) -> some View

```

## Parameters

- `colorScheme`: The color scheme for this view.

## Return Value

Return Value A view that sets this view’s color scheme.

## Discussion

Discussion Use colorScheme(_:) to set the color scheme for the view to which you apply it and any subviews.

## See Also

### Appearance modifiers

- [listRowPlatterColor(_:)](swiftui/view/listrowplattercolor(_:).md)
- [background(_:alignment:)](swiftui/view/background(_:alignment:).md)
- [overlay(_:alignment:)](swiftui/view/overlay(_:alignment:).md)
- [foregroundColor(_:)](swiftui/view/foregroundcolor(_:).md)
- [complicationForeground()](swiftui/view/complicationforeground().md)
