Type Safely

Type Safely

Use .privacySensitive() To Redact Text

Daily Coding Tip 210

Type Safely's avatar
Type Safely
Nov 04, 2022
∙ Paid
person playing guitar
Photo by Gabriel Gurrola on Unsplash

When you first use the .privacySensitive() modifier, you might be confused by the fact that it doesn’t seem to do anything. This is because it relies upon an environment variable called redactionReasons. These reasons are passed down from anywhere where the .redacted(reason: .privacy) modifier is used. I am providing …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture