How do I create a watch widget
Asked on 07/30/2024
1 search
To create a watch widget in watchOS 11, you can follow these steps:
-
Use the Same APIs: You can bring your interactive widgets to watchOS using the same APIs you're currently using on iOS and macOS. This includes using SwiftUI and App Intents.
-
Interactive Widgets: WatchOS 11 supports interactive widgets, allowing users to perform actions directly from the widget without opening the app. For example, you can create a SwiftUI button inside the widget view and implement the
perform
method in your widget's intent to specify the app intent action. This can be used to perform actions like locking a door directly from the widget. -
Accessory Widget Group Layout: Use the new Accessory Widget Group layout to create a view in an accessory rectangular widget that can have up to three different pieces of content. This layout supports both deep linking to different parts of your app and button and toggle initializers to perform actions without leaving the widget.
-
Relevant Contexts: Specify one or more relevant contexts (such as time of day, location, or routine) so that the system can insert your widget into the smart stack at the most useful times.
-
Live Activities: If you have live activities on iOS, they will automatically show up on Apple Watch. You can customize these using the small supplemental activity family to tailor the content for watchOS.
For more detailed guidance, you can refer to the following sessions from WWDC 2024:
- Platforms State of the Union (50:50)
- What’s new in watchOS 11 (05:57)
- Bring your app’s core features to users with App Intents (16:15)
These sessions provide comprehensive information on creating and customizing widgets for watchOS 11.

Design Live Activities for Apple Watch
Starting in watchOS 11, Live Activities from your iOS app will automatically appear in the Smart Stack on a connected Apple Watch. Learn how to optimize the layout of your Live Activity for the wrist, and provide the right level of information and interactivity at the right time.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

What’s new in watchOS 11
Explore new opportunities on Apple Watch, including bringing Double Tap support to your watchOS app, making your Smart Stack widgets even more relevant and interactive, and displaying your iOS Live Activities in the Smart Stack.