---
title: red
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/color/resolvedhdr/red
---

# red

The amount of red in the color in the extended sRGB color space.

## Declaration

```swift
var red: Float { get set }
```

## See Also

### Getting color properties

- [green](swiftui/color/resolvedhdr/green.md)
- [blue](swiftui/color/resolvedhdr/blue.md)
- [linearRed](swiftui/color/resolvedhdr/linearred.md)
- [linearGreen](swiftui/color/resolvedhdr/lineargreen.md)
- [linearBlue](swiftui/color/resolvedhdr/linearblue.md)
- [opacity](swiftui/color/resolvedhdr/opacity.md)
- [headroom](swiftui/color/resolvedhdr/headroom.md)
