WHATS NEW FOR WIDGETS

Generated on 7/31/2024

1 search

Apple introduced several new features for widgets at WWDC 2024. Here are the key updates:

  1. Interactive Widgets: Widgets can now include multiple interactive areas, allowing users to perform actions directly from the widget without opening the app. This feature is available on iOS, macOS, and now watchOS. For example, the interactive home widget in watchOS 11 lets users lock or unlock their door directly from the widget (What’s new in watchOS 11).

  2. Accessory Widget Group Layout: This new layout allows for more information and interactivity by accommodating up to three separate views. It supports deep linking to different parts of your app and includes button and toggle initializers for performing actions directly within the widget (Platforms State of the Union).

  3. Relevant Contexts: Widgets can now specify one or more relevant contexts, such as time of day, location, or routine, to ensure they appear in the smart stack at the most useful times. This makes widgets more timely and contextual (What’s new in watchOS 11).

  4. Customization Options: The new accessory widget group layout allows for customization of colors using the container background view modifier and the foreground style view modifier. This helps in making the widgets visually consistent and appealing (What’s new in watchOS 11).

  5. Live Activities on watchOS: Live activities from iOS will automatically show up on Apple Watch, allowing for seamless integration and interaction. This includes new formats for displaying live times and dates, which are customizable and adapt to the size of their container (What’s new in SwiftUI).

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