iOS 17: opt out of WidgetRenderingMode.vibrant / iPad Lock Screen

We don't have a suitable design for our widget for WidgetRenderingMode.vibrant as used on the iPad Lock Screen.

Is there a way to opt out of having our widget available there?

The iOS 17 photos widget seems to behave like this. It is available for iPhone StandBy, but not for iPad Lock Screen. This is the behaviour we want to have.

Accepted Reply

You can now opt out by using disfavoredLocations(_:for:) https://developer.apple.com/documentation/swiftui/widgetconfiguration/disfavoredlocations(_:for:)

Replies

You can now opt out by using disfavoredLocations(_:for:) https://developer.apple.com/documentation/swiftui/widgetconfiguration/disfavoredlocations(_:for:)