---
title: HKHeartRateRecoveryTestType.maxExercise
framework: healthkit
role: symbol
role_heading: Case
path: healthkit/hkheartraterecoverytesttype/maxexercise
---

# HKHeartRateRecoveryTestType.maxExercise

Measures a person’s actual heart-rate recovery.

## Declaration

```swift
case maxExercise
```

## Discussion

Discussion In this test, a person exercises to their physical limit. The test measures their max heart rate during the workout, and then compares this with their heart rate after the workout ends. This lets the test calculate the actual heart rate recovery.

## See Also

### Heart-rate recovery tests

- [HKHeartRateRecoveryTestType.predictionNonExercise](healthkit/hkheartraterecoverytesttype/predictionnonexercise.md)
- [HKHeartRateRecoveryTestType.predictionSubMaxExercise](healthkit/hkheartraterecoverytesttype/predictionsubmaxexercise.md)
