Sunday, December 15, 2024
HomeiOS Developmentswiftui - How do I alter the iOS widget equipment configuration choices...

swiftui – How do I alter the iOS widget equipment configuration choices primarily based on the widget household


My iOS widgets are available varied sizes however all use the identical supplier and intents. I might like so as to add an additional choice to simply the .rectangularAccessory dimension to permit folks to point out or disguise the situation identify from the widget. This feature wouldn’t be as helpful on the .systemLarge widget.

I began including a second intent sort that had each location selector and the toggle for displaying the identify, however that meant I wanted a brand new supplier and issues began to spiral.

Is there any simple strategy to management which customisation choices seem for every widget structure, with out duplicating suppliers and so forth?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments