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

# LayerRenderer.State.invalidated

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

```
case invalidated
```

## Discussion

A layer enters this state shortly before the system releases its resources. When the layer enters this state, exit your rendering loop and release any drawing-related structures.

---

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)