<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorSpace/init(iccProfileData:)-8rl9d",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColorSpace(im)initWithICCProfileData:"
  },
  "title" : "init(iccProfileData:)"
}
-->

# init(iccProfileData:)

Initializes and returns a color space object from the specified ICC profile.

```
init?(iccProfileData iccData: Data)
```

## Parameters

`iccData`

The ICC profile to use when initializing the `NSColorSpace` object. For information on ICC profiles, see the latest ICC specification at the [International Color Consortium website](http://www.color.org/icc_specs2.html) website.

## Return Value

The initialized `NSColorSpace` object or `nil` if initialization was not successful.

## See Also

[`var iccProfileData: Data?`](/documentation/AppKit/NSColorSpace/iccProfileData)

The ICC profile data from which the color space was created.



---

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)