---
title: "init(iccProfileData:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscolorspace/init(iccprofiledata:)-8rl9d"
---

# init(iccProfileData:)

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

## Declaration

```swift
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 http://www.color.org/icc_specs2.html website.

## Return Value

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

## See Also

### Related Documentation

- [iccProfileData](appkit/nscolorspace/iccprofiledata.md)

### Initializing a Custom Color Space Object

- [init(cgColorSpace:)](appkit/nscolorspace/init(cgcolorspace:)-889nv.md)
- [init(colorSyncProfile:)](appkit/nscolorspace/init(colorsyncprofile:).md)
