Widget

Asked on 08/12/2024

2 searches

Widgets were a significant topic at WWDC 2024, with several sessions discussing their new features and capabilities. Here are some highlights:

  1. Interactive Widgets: Widgets can now be interactive, allowing users to perform actions directly from the widget without opening the app. This includes buttons and toggles that can execute actions, such as locking a door from a home widget on watchOS 11. This feature is supported across all watchOS widget families, although the shape and size of some widgets may limit the number of interactions.

  2. Configurable Widgets: In the session "Bring your app’s core features to users with App Intents," it was discussed how widgets can be made configurable. For example, a trail conditions widget can be set up to show different trails by configuring a trail parameter.

  3. Accessory Widget Group: A new view template API called Accessory Widget Group was introduced in watchOS 11. This allows for creating a view in an accessory rectangular widget with up to three different pieces of content, enhancing glanceability and interactivity.

  4. Relevant Widgets: The system can now suggest widgets to users at the right time, making the smart stack more actionable and intelligent.

For more detailed information, you can refer to the sessions:

These sessions provide insights into how to implement and enhance widgets using the latest APIs and features introduced at WWDC 2024.

Widget | Ask WWDC