<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/State-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@E@cp_layer_renderer_state"
  },
  "title" : "LayerRenderer.State"
}
-->

# LayerRenderer.State

The states of the layer renderer, which tell you how to proceed with drawing operations.

```
enum State
```

## Topics

### Getting the states

[`cp_layer_renderer_state_paused`](/documentation/CompositorServices/LayerRenderer/State-swift.enum/paused)

A state that indicates the layer is paused and not currently drawing.

[`cp_layer_renderer_state_running`](/documentation/CompositorServices/LayerRenderer/State-swift.enum/running)

A state that indicates the layer is visible and ready for you to draw your content.

[`cp_layer_renderer_state_invalidated`](/documentation/CompositorServices/LayerRenderer/State-swift.enum/invalidated)

A state that indicates the layer no longer supports drawing operations.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)