---
title: gradientColors
framework: tvmlkit
role: symbol
role_heading: Instance Property
path: tvmlkit/tvcolor/gradientcolors
---

# gradientColors

An array of colors used to create a gradient for an element.

## Declaration

```swift
var gradientColors: [UIColor]? { get }
```

## Discussion

Discussion This property is only available when colorType is set to TVColorType.linearGradientTopToBottom or TVColorType.linearGradientLeftToRight.

## See Also

### Getting Color Properties

- [color](tvmlkit/tvcolor/color.md)
- [colorType](tvmlkit/tvcolor/colortype.md)
- [TVColorType](tvmlkit/tvcolortype.md)
- [gradientPoints](tvmlkit/tvcolor/gradientpoints.md)
