Is it possible to create a custom data protection view on a Lock Screen widget?

I'm experimenting with adding a Data Protection entitlement to my Lock Screen widget. This works great when the device is locked, it shows a generic placeholder view (attached in the screenshot).

However, I'm wondering if there is a way to use a custom view for the privacy state instead of using the default system one.

Thanks in advance!

You can detect whether the state is privacy sensitive and show a different view, rather than letting the modifier do the work.

Get the redaction reasons from the environment, and do something else:

struct MyView: View {
  @Environment(\.redactionReasons) var redactionReasons

  var body: some View {
    if(redactionReasons.contains(.privacy) || redactionReasons.contains(.placeholder)) {
      Text("I'm redacted")
    } else {
      Text("I'm unredacted")
    }
  }
}
Is it possible to create a custom data protection view on a Lock Screen widget?
 
 
Q