---
title: colors
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkgradientpolylinerenderer/colors
---

# colors

An array that represents the gradient’s color transition points.

## Declaration

```swift
var colors: [UIColor] { get }
```

```swift
var colors: [NSColor] { get }
```

## See Also

### Accessing the gradient colors

- [setColors(_:locations:)](mapkit/mkgradientpolylinerenderer/setcolors(_:locations:)-3xrou.md)
- [setColors(_:locations:)](mapkit/mkgradientpolylinerenderer/setcolors(_:locations:)-1tuft.md)
- [locations](mapkit/mkgradientpolylinerenderer/locations-7k6qz.md)
