Update supported families after api response from timeline

Hi
I am making api call to show data in widgets, initially supporting all families in my configuration. My question is can we update the family after getting the response from api depending on how much items i receive from my server especially in large widget.
I want to show 4 items in large widget but if api gives me 2 or less items i dont want to give user option to add large widget.

Is there anything written in apple documents ? Couldn't find it.


Apparently timeline is simply for individual widget status, updating, etc., not for helicopter-view widget inventory management.

See https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date

There may be a way to suss your inventory, but it would be on you to fish, clean and present manually.

Check github to see if perhaps someone has already done the work for you...

Good luck.
Update supported families after api response from timeline
 
 
Q