Hello, I am building a SwiftUI app that implements a widget. The user can add different configurations inside the app and then he can choose one by editing the widget.
Everything works correctly for almost all of the possible configurations, the widget getTimeline function gets called, all the parameters are passed to the entry successfully and the widget displays.
However the problem appears for some specific configurations, as soon as the user sets the widget configuration by tapping on it, it gets stuck on the loading animation and shows no content.
The only thing that makes these configurations different is the view body. These configurations show more elements, such as Images and Text. I tried removing few elements and the widgets started working.
To make an example there's a widget configuration that is made by a ZStack with a VStack inside, containing 3 HStacks which again contain 1 Text and 1 Image each. Removing 2 HStacks and keeping only one makes the widget load.
Is there something I am missing?
Is there some limit to widgets view elements?
I even checked the ram usage and it appears to be around 10mb for each widget.
Also I noticed that rebooting the device makes the widget load.
Thanks in advance for any help.
Post
Replies
Boosts
Views
Activity
Hello,
is it possible to see the App Store charts in different countries?
So that i can see how my apps are ranking in specific countries.
Thanks in advance for any help.
Regards.
Hello,
from a remote server I should check if a device is online (even with the app closed).
Is there someway I could achieve that?
Thanks in advance!
Best regards.