<!--
{
  "availability" : [
    "iOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/isContentCaptureProtected",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_drawable_is_content_capture_protected"
  },
  "title" : "isContentCaptureProtected"
}
-->

# isContentCaptureProtected

Returns whether content capture is protected and it is safe to
draw content that should be protected from capture.

```
var isContentCaptureProtected: Bool { get }
```

## Discussion

Use this function to ensure that drawing that is only meant for
eyes in the device is not drawn when false.
Only adopt if app has adopted SwiftUI `activatesContentCaptureProtected`
scene modifier and drawing will have content that is not desired
to meant to be captured.
For `cp_drawable_target_capture` this will
always return false as it is upto the renderer to handle drawing
content that will be captured beyond the built-in displays.

---

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)