---
title: "ColorSyncProfileCopyHeader(_:)"
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/colorsyncprofilecopyheader(_:)"
---

# ColorSyncProfileCopyHeader(_:)

Copies the header from a profile.

## Declaration

```swift
func ColorSyncProfileCopyHeader(_ prof: ColorSyncProfile!) -> Unmanaged<CFData>!
```

## Parameters

- `prof`: The profile to copy the header from.

## Return Value

Return Value The profile header (in host endianness), or NULL in case of failure.

## See Also

### Reading profile data

- [ColorSyncProfileCopyDescriptionString(_:)](colorsync/colorsyncprofilecopydescriptionstring(_:).md)
- [ColorSyncProfileGetURL(_:_:)](colorsync/colorsyncprofilegeturl(_:_:).md)
- [ColorSyncProfileGetTypeID()](colorsync/colorsyncprofilegettypeid().md)
