Builds or reviews WidgetKit widgets and controls for Home Screen, Lock Screen, StandBy, CarPlay, and Control Center. Use for timelines, App Intent configuration, interactive controls, push reloads, refresh budgets, deep links, Smart Stack relevance, rendering, extensions, and App Groups.
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Build glanceable Home Screen widgets, Lock Screen complications, Control Center controls, and StandBy or CarPlay widgets using WidgetKit. Targets Swift 6.4 / iOS 26+.
UserDefaults(suiteName: "group.com.example.app") or shared container directories to share data between the main app and the widget.@main WidgetBundle.@main
struct AppWidgetsBundle: WidgetBundle {
var body: some Widget {
OrderStatusWidget()
QuickActionControl()
}
}| Surface | Supported Families | Configuration | Key API |
|---|---|---|---|
| Home Screen | .systemSmall, .systemMedium, .systemLarge, .systemExtraLarge | AppIntentConfiguration | containerBackground(for:) |
| Lock Screen | .accessoryCircular, .accessoryRectangular, .accessoryInline | StaticConfiguration | Monochrome / accented styling |
| StandBy | .systemSmall, .systemMedium | Same as Home Screen | Night mode / red tint adaptation |
| Control Center | ControlWidget (buttons & toggles) | StaticControlConfiguration | ControlWidgetButton, ControlWidgetToggle |
Timelines provide entries into the future:
.atEnd: Requests a new timeline after the last entry date passes..after(Date): Schedules a reload at a specific future timestamp..never: Never reloads automatically; relies on app foreground reloads or push notifications.[!IMPORTANT] The system enforces a daily reload budget (typically 40-70 reloads per day). Do not schedule sub-minute reloads with
.after. For urgent real-time state, push remote updates viapush-notificationsor useactivitykitLive Activities.
Widgets support interactive buttons and toggles:
Button(intent:) and Toggle(isOn:intent:) conforming to AppIntent.app-intents.activitykit.widgetURL), and configurable intents, read Timelines, Configuration, and Deep Links.TimelineProvider..containerBackground(for: .widget), breaking iOS 17+ StandBy and Lock Screen rendering..atEnd, .after)supportedFamilies.containerBackground applied to all widget content viewsAppIntent without launching the main app unnecessarilythienqo/ios-skills
6bf8b62
Canonical home
since May 23, 2026
Also appears in
on Oct 29, 2026
since May 22, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.