---
title: privacy
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/redactionreasons/privacy
---

# privacy

Displayed data should be obscured to protect private information.

## Declaration

```swift
static let privacy: RedactionReasons
```

## Discussion

Discussion Views marked with privacySensitive will be automatically redacted using a standard styling. To apply a custom treatment the redaction reason can be read out of the environment. struct BankingContentView: View {     @Environment(\.redactionReasons) var redactionReasons

var body: some View {         if redactionReasons.contains(.privacy) {             FullAppCover()         } else {             AppContent()         }     } }

## See Also

### Getting redaction reasons

- [invalidated](swiftui/redactionreasons/invalidated.md)
- [placeholder](swiftui/redactionreasons/placeholder.md)
