---
title: "ColorSyncProfileCopyData(_:_:)"
framework: colorsync
role: symbol
role_heading: Function
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 13.0+, macOS 10.13+, tvOS 16.0+, visionOS 1.0+, watchOS 9.0+]
path: "colorsync/colorsyncprofilecopydata(_:_:)"
---

# ColorSyncProfileCopyData(_:_:)

Copies the flattened data from a profile.

## Declaration

```swift
func ColorSyncProfileCopyData(_ prof: ColorSyncProfile!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Unmanaged<CFData>!
```

## Parameters

- `prof`: The profile to copy the flattened data from.
- `error`: On failure, a pointer to an error describing the problem. Optional.

## Return Value

Return Value The profile data on success, or NULL in case of failure.

## See Also

### Embedding and extracting profiles

- [ColorSyncProfileCreate(_:_:)](colorsync/colorsyncprofilecreate(_:_:).md)
