Dear, I would like to know how can I get the upper limit usage of WidgetKit?
If the cpu usage overflows, will it be crash, and shall we catch the logs in the main app?
Thank you!
Dear, I would like to know how can I get the upper limit usage of WidgetKit?
If the cpu usage overflows, will it be crash, and shall we catch the logs in the main app?
Thank you!
How are you going to hit high CPU usage in a widget? They aren't running apps. Your iOS app tells the widget what data to display and when, there's little to no processing. The system handles that.
If you think you're going to hit high CPU usage then you haven't looked at how widgets should be: Glanceable, Personalised, etc.
A single or group of Widgets essentially are an extension point. Generally, extension points are subject to a different set of rules compared apps. There is limited memory and they can be killed easier than apps. Specific to to Widgets, archived timelines should be under a certain size, which you can check via the Console.app and monitoring the WIdget's process.