static let placeholder: RedactionReasons
Displayed data should appear as generic placeholders.
Availability 有効性
Technology
static let privacy: RedactionReasons
Views marked with privacy
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()
}
}
}
static let placeholder: RedactionReasons