is there a new API for health/ workouts where you can set the training load of a workout
Generated on 9/23/2024
1 search
Yes, there is a new API related to workouts that allows for more customization, including setting training loads. Specifically, the WorkoutKit API has been enhanced to support custom swimming workouts, where you can set goals and alerts. A new goal type combines both distance and time, which can be particularly useful for structuring workouts with specific training loads. This is part of the updates in watchOS 11, as mentioned in the session Build custom swimming workouts with WorkoutKit (04:20).
Additionally, the session What’s new in watchOS 11 (12:29) discusses enhancements in health and fitness APIs, including the ability to customize workout steps and goals, which can be used to tailor workouts to specific training loads.
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.
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.
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.