<!--
{
  "availability" : [
    "tvOS: 9.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVColor/gradientColors",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TVColor(py)gradientColors"
  },
  "title" : "gradientColors"
}
-->

# gradientColors

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

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

## Discussion

This property is only available when [`colorType`](/documentation/TVMLKit/TVColor/colorType) is set to [`TVColorType.linearGradientTopToBottom`](/documentation/TVMLKit/TVColorType/linearGradientTopToBottom) or [`TVColorType.linearGradientLeftToRight`](/documentation/TVMLKit/TVColorType/linearGradientLeftToRight).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)