WorkoutKit

Generated on 8/1/2024

1 search

WorkoutKit at WWDC 2024

Relevant Sessions:

  1. Build custom swimming workouts with WorkoutKit
  2. What’s new in watchOS 11

Key Features and Enhancements:

  1. Custom Swimming Workouts:

    • Goal Types: You can create goal-based workouts for energy, time, or distance, pacer workouts, triathlon workouts, and custom workouts with structured steps.
    • New Goal Type: For custom pool swimming workouts, a new goal type combines both distance and time. This is useful for swimmers who perform repeated sets of distance and rest.
    • User-Selectable Workout Locations: Starting in watchOS 10.1, you no longer need to specify indoor or outdoor locations when scheduling workouts.
    • Custom Step Names: In watchOS 11, you can customize step names for all workout types, providing more context for each step.
  2. New Alerts and Goals:

    • Average Power Alerts: For running and cycling workouts, you can specify between current and average power alerts.
    • Pace Alerts: New for indoor running in watchOS 11.
    • Distance Goals: Expanded support for distance goals in various outdoor activities, including new types like outdoor rowing and outdoor skating.
  3. API Enhancements:

    • Workout Scheduler API: Allows scheduling workouts for later.
    • Display Name Property: Customize the name of your work, recovery, warmup, and cooldown steps.

Example Use Case:

  • Custom Pool Swim Workout:
    • Create a workout with a distance of 50 meters and a time duration of 1 minute.
    • Use the pool swim distance with time goal type.
    • Customize steps to indicate swim strokes.
    • Schedule the workout using the workout scheduler API.

Additional Resources:

Feel free to explore these sessions for a deeper dive into the new features and enhancements in WorkoutKit!