-
Notifications
You must be signed in to change notification settings - Fork 36
Redacted
Nick Sarno edited this page Apr 3, 2022
·
1 revision
Redact any View based on a Boolean
Text(text)
.redacted(if: text.isEmpty, style: .placeholder)- Use
.placeholderfor Apple's default redacted state - Use
.appearto hide the view while redacted - Use
.opacityto animate the view's opacity from 0 to 1 when changing Boolean's value
public enum RedactedStyle {
case placeholder
case opacity
case appear
case none
}