An iOS widget is a small view of your app on the Home Screen, in Today View or on the Lock Screen, built with WidgetKit and SwiftUI. A widget people look at often typically gets 40 to 70 refreshes a day, roughly one every 15 to 60 minutes (WidgetKit documentation, checked October 17, 2026).
What a widget is and where people see it
A widget shows one fresh piece of your app, such as the weather, the next meeting or what’s left of a budget. WidgetFamily, the type that defines widget sizes, arrived in iOS 14 in 2020. Today widgets live on the Home Screen and in Today View on iPhone and iPad, on the Lock Screen, in StandBy, in CarPlay, on the Mac desktop, and on walls and tables in Apple Vision Pro.
A widget doesn’t run all the time. The system renders it in a separate process from a schedule, the timeline, that your app hands to WidgetKit in advance. Since iOS 17 a widget can hold buttons and toggles that run an action through App Intents without opening the app.
Where widgets live in Xcode
A widget is its own target in Xcode next to your app. Choose File › New › Target, select the widget target in the iOS list, enter a name and click Finish. For a first simple widget Apple suggests clearing Include Live Activity and Include Configuration App Intent.
In code a widget is a Widget structure. The supportedFamilies modifier lists its sizes, while configurationDisplayName and description set the name and the line people read in the widget gallery.
Apple’s sizes and limits
| Size | Where on iPhone | Points on a 430×932 screen |
|---|---|---|
| Small | Home Screen, Today View, StandBy, CarPlay | 170×170 |
| Medium | Home Screen, Today View | 364×170 |
| Large | Home Screen, Today View | 364×382 |
| Extra large | not on iPhone, only iPad, Mac and Vision Pro | 748×356 on a 1024×1366 iPad |
| Accessory circular, rectangular | Lock Screen, below the clock | 76×76 and 172×76 |
| Accessory inline | Lock Screen, a line above the clock | 257×26, one tap target |
| Margins and text | all sizes | 16 pt margin, 11 pt tight, text 11 pt or larger |
| Refreshes | a widget people view often | 40 to 70 a day, entries about 5 minutes apart at least |
Per the Human Interface Guidelines and WidgetKit documentation (WidgetFamily, Keeping a widget up to date), checked October 17, 2026.
The refresh budget, or why a widget lags
The budget applies to each widget a person adds and runs over a rolling 24 hours tuned to when they use their phone. Some reloads cost nothing, for example while your app is in the foreground, during audio or navigation, after a tap on a button in the widget, or when the system language or text size changes.
When your app gets new data it asks for a reload with WidgetCenter reloadTimelines. Since iOS 26 a push through WidgetPushHandler can also reload a widget, but Apple budgets those pushes too and delivers them when it suits the system. Timers and countdowns need no reloads at all, because the system redraws a dynamic date by itself.
What changed in iOS 26 and after
In June 2025, together with Liquid Glass, Home Screen widgets gained clear and tinted appearances. In them the system switches to the accented rendering mode, removes the background, adds glass or a tint and turns your content white. So Apple asks you to split views into primary and accent groups with widgetAccentable and to set image behavior with WidgetAccentedRenderingMode. The material itself is covered on the Liquid Glass page.
At the same time the small widget came to CarPlay, and in visionOS 26 widgets became physical objects with a paper or glass finish that people scale from 75 to 125 percent. On October 13, 2026 Apple added Apple HomeView guidance to the widgets section of the HIG.
How to build a first widget, step by step
- Pick one thing people will glance at, not tap. Apple says a widget that only repeats your app icon adds little value.
- Add a widget target with File › New › Target and start with the small size, as Apple’s own example does.
- Write a timeline with entries a sensible distance apart, 5 minutes or more, and a refresh policy of atEnd, never or after.
- If the widget shows app data, call WidgetCenter reloadTimelines for that widget kind whenever the data changes.
- Check the widget in previews in all three modes, full color, accented and vibrant, and with a large text size.
Common mistakes
- Promising a refresh every minute. With 40 to 70 reloads a day that can’t happen, and for a live match score or a delivery Apple offers Live Activities instead.
- A button that only opens the app. Apple wants Link and widgetURL for opening the app, while a button should get something done in place.
- Text as an image. Rasterized text doesn’t scale and VoiceOver can’t read it, and Apple considers anything under 11 pt hard to read.
- Skipping the clear appearance. In the accented mode your colored background disappears, and white text can end up on light glass.
An app built in Appto stays a regular SwiftUI project in Xcode, so a widget target goes into it the same way as into any other project, and the agent walks through the screens on the simulator and fixes what it finds. More on the app code page.
Questions
How often does an iPhone widget refresh?
A widget people view often usually gets 40 to 70 refreshes a day, about one every 15 to 60 minutes. The system picks the exact rhythm itself, per the WidgetKit documentation as of October 17, 2026.
Which iOS version made widgets interactive?
iOS 17, released in 2023. Buttons and toggles work in small, medium, large and extra large widgets, and in circular and rectangular widgets on the Lock Screen. On a locked phone they only act after the person unlocks it.
What widget sizes does iPhone support?
Small, medium and large on the Home Screen, plus circular, rectangular and inline on the Lock Screen. Extra large isn’t supported on iPhone, only on iPad, Mac and Vision Pro.
Can a widget show a timer without refreshing?
Yes. The system redraws a countdown or elapsed-time date on its own, and that doesn’t use the refresh budget.
How is a widget different from a Live Activity?
A widget stays on screen and refreshes on a schedule. A Live Activity follows one event with a start and an end, like a ride, and updates from the app or by push.
Build your own app in Appto
Appto checks the niche on fresh App Store data, designs the screens, writes the code, builds the App Store page and submits to Apple from your account or shows you what to press in App Store Connect. Runs on your own Claude Code or Codex.
Download for Mac