cupertino-sample-code/workoutkit-customizing-workouts-with-workoutkit
Mihaela Mihaljevic 37fd4fb24f Initial commit: 606 Apple sample code projects
MIT License - Apple Developer sample code
Downloaded via Cupertino (https://github.com/mihaelamj/cupertino)
2025-12-03 00:19:12 +01:00
..
Configuration Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Sample Planner Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
Sample Planner.xcodeproj Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
.gitignore Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
LICENSE.txt Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00
README.md Initial commit: 606 Apple sample code projects 2025-12-03 00:19:12 +01:00

Customizing workouts with WorkoutKit

Create, preview, and sync workouts for use in the Workout app on Apple Watch.

Overview

Configure the sample code project

Before you run the sample code project in Xcode:

  1. Open the sample with the latest version of Xcode.
  2. Select the top-level project.
  3. Click the target and select a team in the Signing & Capabilities pane.

Plan a workout and track its progress

To run the sample code project in Xcode:

  1. Make a clean build and run the sample app on an iPhone with iOS 18 or later.
  2. Tap the calendar icon in the top right of the sample app and select a workout type.
  3. Open the Workout app on a paired Apple Watch running watchOS 11 or later.
  4. The planned workout appears at the top of the Workout list on the watch.
  5. Tap to begin the workout.
  6. Wait at least 1 minute for the Workout app to complete the workout.
  7. End the workout.
  8. In the sample app, swipe the Workout list to refresh the view.
  9. A green checkmark appears next to the completed workout.