---
title: color
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/symbolvariablevaluemode/color
---

# color

The “color” variable value mode. Sets the opacity of each variable layer to either on or off depending on how its threshold compared to the current value.

## Declaration

```swift
static let color: SymbolVariableValueMode
```
