---
title: "redacted(reason:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/redacted(reason:)"
---

# redacted(reason:)

Adds a reason to apply a redaction to this view hierarchy.

## Declaration

```swift
nonisolated func redacted(reason: RedactionReasons) -> some View

```

## Discussion

Discussion Adding a redaction is an additive process: any redaction provided will be added to the reasons provided by the parent.

## See Also

### Redacting private content

- [Designing your app for the Always On state](watchos-apps/designing-your-app-for-the-always-on-state.md)
- [Protecting sensitive content when screen sharing and remote control are active](swiftui/protecting-sensitive-content-when-screen-sharing.md)
- [privacySensitive(_:)](swiftui/view/privacysensitive(_:).md)
- [unredacted()](swiftui/view/unredacted().md)
- [redactionReasons](swiftui/environmentvalues/redactionreasons.md)
- [isSceneCaptured](swiftui/environmentvalues/isscenecaptured.md)
- [RedactionReasons](swiftui/redactionreasons.md)
