Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use .privacySensitive() To Redact Text

Use .privacySensitive() To Redact Text

Daily Coding Tip 210

Type Safely's avatar
Type Safely
Nov 04, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use .privacySensitive() To Redact Text
Share
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 …

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share