---
title: "init(colorSyncProfile:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscolorspace/init(colorsyncprofile:)"
---

# init(colorSyncProfile:)

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

## Declaration

```swift
init?(colorSyncProfile prof: UnsafeMutableRawPointer)
```

## Parameters

- `prof`: The ColorSync profile to use when initializing the NSColorSpace object. This should be an object of opaque type CMProfileRef. See doc://com.apple.documentation/documentation/applicationservices/colorsync_manager for further information on CMProfileRef.

## Return Value

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

## See Also

### Related Documentation

- [colorSyncProfile](appkit/nscolorspace/colorsyncprofile.md)

### Initializing a Custom Color Space Object

- [init(cgColorSpace:)](appkit/nscolorspace/init(cgcolorspace:)-889nv.md)
- [init(iccProfileData:)](appkit/nscolorspace/init(iccprofiledata:)-8rl9d.md)
