WidgetKit

Easily build widgets and make them available in iOS, iPadOS, and macOS using the WidgetKit framework and the widget API for SwiftUI. Now you can use WidgetKit to create widgets for the iPhone Lock Screen, as well as complications in watchOS. And later this year, you can create Live Activities to deliver real-time updates.

iPad, iPhone, and Apple Watch side by side, each displaying different widgets

Widgets

Widgets come in multiple sizes, and people can visit the widget gallery to search and preview sizes. They can place them anywhere on the Home Screen in iOS and iPadOS, or in the macOS Notification Center, to access important details at a glance. In iOS and iPadOS, they can also add Smart Stacks — sets of widgets that use on-device intelligence to surface the right widget at the right moment based on factors like time, location, and activity. Even widgets that haven’t been manually added are suggested in Smart Stacks based on past behavior and on intent donations for new events. In addition, you can use TimelineEntryRelevance to rotate your widget to the top of the stack when it’s relevant to the user.

New in WidgetKit

Easily build widgets and make them available in iOS, iPadOS, and macOS with WidgetKit and SwiftUI. Use WidgetKit to create widgets for the iPhone Lock Screen and complications for Apple Watch. WidgetKit also powers Live Activities, so you can deliver real time, glanceable updates on the iPhone Lock Screen and in Dynamic Island.

Watch the videos

iPhone showing the lock screen with a fitness widget

Live Activities

Get started with Live Activities to help people stay on top of what’s happening in your app. ActivityKit lets your app provide real-time updates through glanceable experiences powered by WidgetKit and SwiftUI — right on the Lock Screen and in Dynamic Island.

Learn more

iPhone showing the lock screen with a Live Activity displayed

Tools and resources

Use Xcode and these resources to build widgets and complications.

Download Xcode