Daily iOS
App lifecycle and system

WidgetKit timelines and App Intents

You're getting complaints that the home screen widget doesn't change in real time. How does WidgetKit handle refreshes?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

A widget isn't a running process, it's timeline snapshots the system draws, and refreshes happen when the system decides, within a budget of a few dozen a day. If you need real time, call reloadTimelines from the app or use a Live Activity.

Share a question