<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFCopyTypeIDDescription(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFCopyTypeIDDescription"
  },
  "title" : "CFCopyTypeIDDescription(_:)"
}
-->

# CFCopyTypeIDDescription(_:)

Returns a textual description of a Core Foundation type, as identified by its type ID, which can be used when debugging.

```
func CFCopyTypeIDDescription(_ type_id: CFTypeID) -> CFString!
```

## Parameters

`type_id`

An integer of type [`CFTypeID`](/documentation/CoreFoundation/CFTypeID) that uniquely identifies a Core Foundation opaque type.

## Return Value

A string containing a type description. Ownership follows the [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029).

## Discussion

You can use this function for debugging Core Foundation objects in your code. Note, however, that the description for a given object may be different in different releases of the operating system. Do *not*  create dependencies in your code on the content or format of the information returned by this function.

---

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)