Type Property 型プロパティ

privacy

Displayed data should be obscured to protect private information.

Declaration 宣言

static let privacy: RedactionReasons

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