<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CompositorContent/contentCaptureProtected(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17CompositorContentPAAE23contentCaptureProtectedyQrSbF"
  },
  "title" : "contentCaptureProtected(_:)"
}
-->

# contentCaptureProtected(_:)

Marks the view as a view that activates content protection
during scene capture events, such as screenshots, screen
recordings, screensharing, etc.

```
nonisolated func contentCaptureProtected(_ isActive: Bool = true) -> some CompositorContent
```

## Parameters

`isActive`

A Boolean value that specifies
whether this view is protected when present on
screen during scene capture.

## Discussion

The `contentCaptureProtected` modifier requires the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.protected-content> entitlement. For more information on how to apply for this entitlement,
see <doc://com.apple.documentation/documentation/visionOS/building-spatial-experiences-for-business-apps-with-enterprise-apis>.

On visionOS, the system redacts the entire screen when
a view marked with this modifier is present on screen,
scene capture is active, and the app has the
App Protected Content entitlement.

---

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)