I would like to redact text when a user is viewing an iOS 16 Lock Screen widget when the device is locked, then immediately reveal the text after the device has been unlocked.
(Basically, I only want to show info on the Lock Screen widget after Face ID has unlocked)
At first I thought this would work, however this always redacts text:
struct WidgetEntryView : View {
var entry: Provider.Entry
var body: some View {
Text(entry.myString)
.privacySensitive(true)
}
}
Is there anyway to accomplish this in the View for the widget?