What is WidgetKit?
WidgetKit is Apple's framework for widgets: small views of an app's content, made to be read at a glance on the Home Screen, the Lock Screen and elsewhere in iOS. A widget isn't a little app that runs all the time; the app hands WidgetKit a timeline of entries, and iOS shows each one when its time comes. Widgets can also carry buttons and toggles that act without opening the app.
More about WidgetKit
Because the widget isn't running, it can't refresh whenever it likes. WidgetKit gives each widget a daily budget, which Apple says typically comes to 40 to 70 refreshes for a widget someone views often, roughly one every 15 to 60 minutes, and the app can ask for a reload when its data changes. Home Screen widgets come in small, medium and large; Lock Screen widgets are circular, rectangular or a single line of text. On a locked phone, a widget's buttons wait until the person unlocks it.
An example
A habit tracker's widgets show how this works. The small one on the Home Screen shows today's streak in large type; the medium one lists three habits, each with a tick button, so a morning run is marked done without opening the app. On the Lock Screen, a ring fills as the day's habits are ticked off. Tap anywhere else on a widget and the app opens on that habit.
A common misunderstanding
Widgets don't update live, second by second. Each one shows the entry iOS last drew, refreshed within its budget, so a widget suits what changes a few times an hour or less, or times known in advance; a countdown can still tick in the widget's own text without any refresh. Nor does a widget need a download of its own: it ships inside its app and appears in the widget gallery once the app is installed.
In a Borel app
Widgets are a part of a Borel app you ask for by name: say you want one, and the app gets a widget beside its screens, kept in step with what the app holds. It lives on a real iPhone's Home Screen or Lock Screen, where you add it the usual way: hold the Home Screen, tap Edit, then Add Widget, and find the app. When you publish, the widget goes to the App Store inside the app, and a later change to the app can change the widget with it.
WidgetKit with Borel
Ask for a widget in your own words, and Borel builds it in Swift with WidgetKit: Home Screen widgets in small, medium or large, Lock Screen widgets, and buttons or toggles that work without opening the app. The app hands the widget a small snapshot of its data, and Borel Companion puts both on your iPhone on Pro.
Sources: Apple Developer: WidgetKit; Apple Developer: Keeping a widget up to date; Apple Developer: Adding interactivity to widgets and Live Activities. Checked .
Related terms
Make your iPhone app in Borel
Describe it in your own words. Borel writes it in Swift, builds it on its own Mac and puts it on your iPhone.