<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIColor/components",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIColor(py)components"
  },
  "title" : "components"
}
-->

# components

Return a pointer to an array of `CGFloat` values including alpha.

```
var components: UnsafePointer<CGFloat> { get }
```

## Discussion

Typically this array will contain `4` `CGFloat` values for red, green, blue, and alpha.
If the [`CIColor`](/documentation/CoreImage/CIColor) was initialized with a `CGColor` then returned pointer
will be the same as calling `CGColorGetComponents()`

---

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)