<!--
{
  "availability" : [
    "iOS: 10.3.0 -",
    "iPadOS: 10.3.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDrawable/drawableID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDrawable(py)drawableID"
  },
  "title" : "drawableID"
}
-->

# drawableID

A positive integer that identifies the drawable.

```
var drawableID: Int { get }
```

## Discussion

Drawable objects are usually owned by some other object, such as a <doc://com.apple.documentation/documentation/QuartzCore/CAMetalLayer>. The owning object gives the first drawable it creates an ID of `0`, and it increments the ID by `1` for each additional drawable it creates.

---

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)