19.4 · WidgetKit timelines, families, refresh budgets, interactivity and controls

A widget is not a running view. It is a timeline of snapshots that the system renders on its own schedule, which is why every widget bug is really a bug about time.

Mental model. You hand the system a list of future entries and a reload policy. The system decides when to draw and when to ask again.

Timelines and budgets

Providers, entries, policies, families and the refresh budget.

  1. How does a WidgetKit widget work: providers, timeline entries, reload policies, families and the refresh budget? 19.4.1 · L3
    A widget is a SwiftUI view rendered from a timeline, hosted in a widget extension. You define a Widget with a StaticConfiguration (or an AppIntentConfiguration…

Interactive widgets and controls

Configuration intents, buttons, and Control Center controls.

  1. How do configurable widgets, interactive buttons and Control Center controls work with App Intents? 19.4.2 · L5
    Since iOS 17 widgets can do more than display. Configurable widgets use an AppIntentConfiguration: the widget declares an WidgetConfigurationIntent (an App…

More in Extensions, widgets & intents