---
title: colors
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/meshgradient/colors-swift.property
---

# colors

The array of colors. Must contain width x height elements.

## Declaration

```swift
var colors: MeshGradient.Colors
```
