---
title: colors
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipasteboard/colors
---

# colors

An array of color objects in all pasteboard items.

## Declaration

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

## Discussion

Discussion The value stored in this property is an array of UIColor objects. The associated array of representation types is typeListColor. Setting this property replaces all current items in the pasteboard with the new items. The returned array may have fewer objects than the number of pasteboard items; this happens if a pasteboard item does not have a value of the indicated type. note: Do not use this property to determine if a pasteboard contains color data. Instead, use the hasColors property.

## See Also

### Getting and setting pasteboard items of standard data types

- [string](uikit/uipasteboard/string.md)
- [strings](uikit/uipasteboard/strings.md)
- [image](uikit/uipasteboard/image.md)
- [images](uikit/uipasteboard/images.md)
- [url](uikit/uipasteboard/url.md)
- [urls](uikit/uipasteboard/urls.md)
- [color](uikit/uipasteboard/color.md)
