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.

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

Now you can use WidgetKit to build complications for Apple Watch and widgets on the Lock Screen for iPhone, embracing SwiftUI and extending the glanceable experience. Write your code once for iOS 16 and watchOS 9, and share infrastructure with your existing Home Screen widgets.

Watch the videos

iPhone showing the lock screen with a fitness widget

Live Activities

Create Live Activities with WidgetKit to help people stay on top of what’s happening in your app in real time, right from the Lock Screen. And with SwiftUI, you can animate your Live Activities from one state to the next.

Available starting in an update to iOS 16 later this year.

Tools and resources

Use Xcode and these resources to build widgets and complications.

Download Xcode