What are the new apis in watchOS 11?

Generated on 8/2/2024

1 search

In watchOS 11, several new APIs and features have been introduced to enhance the development experience and provide more functionality for apps. Here are some of the key new APIs and features:

  1. Live Activities: If you've adopted live activities in your iOS app, the system will leverage the work you've already done to support the Dynamic Island to offer a live activity experience on Apple Watch. This includes compact leading and trailing views in the smart stack and significant event notifications (Platforms State of the Union).

  2. Interactive Widgets: You can now bring your interactive widgets to watchOS using the same APIs you're currently using on iOS and macOS. This includes creating widgets with multiple interactive areas that perform actions and update state directly in the widget (Platforms State of the Union).

  3. Double Tap: This new feature allows users to navigate and take action in your app or widget using a double tap gesture. The Handgesture shortcut modifier can be used to identify a button or toggle as the primary action in your app, widget, or live activity (Platforms State of the Union).

  4. HealthKit Enhancements: New APIs in HealthKit allow you to read and write mood or emotion data using the new State of Mind API. There are also enhancements in WorkoutKit, such as new alert types, expanded support for distance goals, and the ability to customize the name of workout steps (What’s new in watchOS 11).

  5. WorkoutKit Enhancements: New features include average power alerts for running and cycling workouts, pace alerts for indoor running, and expanded support for distance goals for various outdoor activities. Custom pool swimming workouts now support a new goal type, "Distance with Time" (Build custom swimming workouts with WorkoutKit).

  6. Suggested Widgets: The system can now intelligently add or remove widgets based on what's relevant in the moment. For example, a precipitation widget might appear 15 minutes before it rains and disappear once the skies clear up (Design Live Activities for Apple Watch).

These new APIs and features provide developers with more tools to create engaging, interactive, and contextually relevant experiences on Apple Watch. For more detailed information, you can check out the sessions mentioned above.