---
title: Tracking heart rate zones for workouts
framework: healthkit
role: sampleCode
role_heading: Sample Code
path: healthkit/tracking-heart-rate-zones-for-workouts
---

# Tracking heart rate zones for workouts

Start a workout on iOS or watchOS and track and display heart rate zones.

## Overview

Overview note: This sample code project is associated with WWDC26 session 207: Deliver workout insights with HealthKit workout zones. Configure the sample code project To configure the sample code project: Open the sample with the latest version of Xcode. Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see Set the bundle ID and Assign the project to a team. In the Info pane of the HKWorkoutZoneSample Watch App target, change the value of the WKCompanionAppBundleIdentifier key to the bundle ID of the iOS app.

## See Also

### Workout zones

- [Accessing workout zone data](healthkit/accessing-workout-zone-data.md)
- [HKWorkoutZone](healthkit/hkworkoutzone.md)
- [HKWorkoutZoneConfiguration](healthkit/hkworkoutzoneconfiguration.md)
- [HKWorkoutZoneDuration](healthkit/hkworkoutzoneduration.md)
- [HKWorkoutZoneGroup](healthkit/hkworkoutzonegroup.md)
