privacy
Displayed data should be obscured to protect private information.
Declaration
static let privacy: RedactionReasonsDiscussion
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()
}
}
}