---
title: state
framework: compositorservices
role: symbol
role_heading: Instance Property
path: compositorservices/layerrenderer/drawable/state-swift.property
---

# state

The current operational state of a drawable instance.

## Declaration

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

## Discussion

Discussion A state value of LayerRenderer.Drawable.State.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.

## See Also

### Managing the state machine

- [LayerRenderer.Drawable.State](compositorservices/layerrenderer/drawable/state-swift.enum.md)
