---
title: typeID
framework: coregraphics
role: symbol
role_heading: Type Property
path: coregraphics/cglayer/typeid
---

# typeID

Returns the unique type identifier used for CGLayer objects.

## Declaration

```swift
class var typeID: CFTypeID { get }
```

## Discussion

Discussion A type identifier is an integer that identifies the opaque type to which a Core Foundation object belongs. You use type IDs in various contexts, such as when you are operating on heterogeneous collections.
