What’s new in HealthKit?
Generated on 8/1/2024
1 search
What's New in HealthKit?
HealthKit in visionOS
HealthKit has been extended to visionOS, enabling developers to create immersive and collaborative health experiences on Apple Vision Pro. Key capabilities include:
- Reading and writing health data.
- Computing statistics.
- Registering for updates when data changes.
- Syncing data between devices through iCloud.
- Handling guest users, who are restricted from authorizing health data access.
For more details, you can refer to the session Get started with HealthKit in visionOS.
State of Mind API
A significant addition to HealthKit is the new State of Mind API, which allows apps to read and write mood or emotion data. This API is designed to enhance mental wellbeing by enabling users to log their state of mind and reflect on their mental health.
For more information, check out the session Explore wellbeing APIs in HealthKit.
watchOS 11 Enhancements
In watchOS 11, HealthKit has been updated to support the new State of Mind API, allowing for the integration of mood and emotion data into apps. This update is part of broader enhancements in health and fitness features on the Apple Watch.
For more details, refer to the session What’s new in watchOS 11.
Relevant Sessions
These sessions provide a comprehensive overview of the new features and capabilities in HealthKit, including its expansion to visionOS and the introduction of the State of Mind API.
Explore wellbeing APIs in HealthKit
Learn how to incorporate mental health and wellbeing into your app using HealthKit. There are new APIs for State of Mind, as well as for Depression Risk and Anxiety Risk. We’ll dive into principles of emotion science to cover how reflecting on feelings can be beneficial, and how State of Mind can be used to represent different types of mood and emotion.
Build custom swimming workouts with WorkoutKit
Check out the latest in creating, customizing, and scheduling workouts using WorkoutKit. Sprint through the latest in pace and power alerts and expanded support for distance goals. And keep the momentum going with the benefits of custom step names.
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.
Get started with HealthKit in visionOS
Discover how to use HealthKit to create experiences that take full advantage of the spatial canvas. Learn the capabilities of HealthKit on the platform, find out how to bring an existing iPadOS app to visionOS, and explore the special considerations governing HealthKit during a Guest User session. You’ll also learn ways to use SwiftUI, Swift Charts, and Swift concurrency to craft innovative experiences with HealthKit.