---
title: HKWorkoutZoneDuration
framework: healthkit
role: symbol
role_heading: Structure
path: healthkit/hkworkoutzoneduration
---

# HKWorkoutZoneDuration

A structure that represents the time spent in a specific zone during a workout or activity.

## Declaration

```swift
struct HKWorkoutZoneDuration
```

## Overview

Overview This structure pairs a zone with the duration of time the person spent in that zone. The system calculates durations based on quantity samples collected during the workout.

## Topics

### Accessing duration properties

- [zone](healthkit/hkworkoutzoneduration/zone.md)
- [duration](healthkit/hkworkoutzoneduration/duration.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Workout zones

- [Tracking heart rate zones for workouts](healthkit/tracking-heart-rate-zones-for-workouts.md)
- [Accessing workout zone data](healthkit/accessing-workout-zone-data.md)
- [HKWorkoutZone](healthkit/hkworkoutzone.md)
- [HKWorkoutZoneConfiguration](healthkit/hkworkoutzoneconfiguration.md)
- [HKWorkoutZoneGroup](healthkit/hkworkoutzonegroup.md)
