<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/state-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_drawable_get_state"
  },
  "title" : "state"
}
-->

# state

The current operational state of a drawable instance.

```
var state: LayerRenderer.Drawable.State { get }
```

## Discussion

A state value of [`LayerRenderer.Drawable.State.rendering`](/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum/rendering) indicates
the drawable type is ready for you to draw your content.
Other values indicate that Compositor Services currently owns the drawable.

Compositor Services reuses the underlying data structures associated with drawable types.
The drawable’s state indicates whether it’s ready for you to draw to it.
Run your drawing operations only when the drawable’s state is equal to
[`LayerRenderer.Drawable.State.rendering`](/documentation/CompositorServices/LayerRenderer/Drawable/State-swift.enum/rendering).

---

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)