<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteboard/colors",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPasteboard(py)colors"
  },
  "title" : "colors"
}
-->

# colors

An array of color objects in all pasteboard items.

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

## Discussion

The value stored in this property is an array of [`UIColor`](/documentation/UIKit/UIColor) objects. The associated array of representation types is [`typeListColor`](/documentation/UIKit/UIPasteboard/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 ``doc://com.apple.uikit/documentation/UIKit/UIPasteboard/hasColors`` property.

---

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)