Configuring a systemExtraLarge ONLY widget

I'm attempting to configure a widget on iOS 15 that only supports the systemExtraLarge size. I already do this for the other sizes but seems impossible for systemExtraLarge in a way that is compatible with iOS 14 as well.

If I configure it with .supportedFamilies([.systemExtraLarge]) on iOS 15 everything will work as expected. The widget is shown on the iPad and hidden on the iPhone.

On iOS 14 the trouble is that I appear to need to provide something for the supportedFamilies call. If I pass this in as empty (.supportedFamilies([])), then appears that WidgetKit falls over and won't display any of my other widgets at all, including my other Small/Medium/Large widgets. It disappears entirely from the Widget Gallery list.

Right now the best I can do is put a systemLarge in there as well on iOS 14, that shows a message like 'Widget Size Not supported on your Device'. Which is rather awkward and likely to cause confusion.

If anyone have any suggestions or strategies to get around this I'd be delighted to hear it!

Configuring a systemExtraLarge ONLY widget
 
 
Q