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!
Post
Replies
Boosts
Views
Activity
I just finished the video regarding the new Expanded/Condensed SF font variants. I was trying to work out how to use them in my apps, but can't seem to find them anywhere. I'd have guessed they would be in the SwiftUI's Font element as a new .design option, but I didn't see them. Has anyone found them yet, or are they not in the first beta?