Widgets and watch complications
Allow people to personalize their devices, view relevant information, and perform interactions with widgets and watch complications.
Overview
Use WidgetKit to create widgets and watch complications that elevate a small amount of timely, personally relevant information from your app and allow people to perform quick actions without launching your app:
On iPhone and iPad, people put widgets in Today View, on the Home Screen, and on the Lock Screen.
On Mac, people place macOS widgets and widgets from a paired iPhone in locations like the Mac desktop and in Notification Center.
On Apple Watch, widgets appear in the Smart Stack and as watch complications.
On Apple Vision Pro, widgets become three-dimensional objects that people pin to horizontal and vertical surfaces.
In CarPlay, people configure iPhone widgets to appear on the widgets screen.
Topics
Widget creation
Creating a widget extensionDeveloping a WidgetKit strategyEmoji Rangers: Supporting Live Activities, interactivity, and animationsPreparing widgets for additional platforms, contexts, and appearancesWidgetWidgetFamilyStaticConfiguration
Configurable widgets
Making a configurable widgetMigrating widgets from SiriKit Intents to App IntentsAppIntentConfigurationWidgetInfo
Layout and presentation
Supporting additional widget sizesDisplaying the right widget backgroundOptimizing your widget for accented rendering mode and Liquid GlassAdding StandBy and CarPlay support to your widgetWidgetRenderingModeWidgetAccentedRenderingModeAccessoryWidgetBackgroundWidgetLocation
Timeline updates
Keeping a widget up to dateTimelineProviderAppIntentTimelineProviderIntentTimelineProviderTimelineProviderContextTimelineEntryTimelineWidgetCenter
Push notification updates
Capabilities
Debugging
visionOS widgets
Updating your widgets for visionOSwidgetTexture(_:)WidgetTexturesupportedMountingStyles(_:)WidgetMountingStyleLevelOfDetail
Accessory and watchOS widgets
Creating accessory widgets and watch complicationsAccessoryWidgetGroupAccessoryWidgetGroupStyleMigrating ClockKit complications to WidgetKit