---
title: HKPredicateKeyPathWorkoutDuration
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathworkoutduration
---

# HKPredicateKeyPathWorkoutDuration

The key path for accessing the workout’s duration.

## Declaration

```swift
let HKPredicateKeyPathWorkoutDuration: String
```

## See Also

### Specifying predicate key paths

- [HKPredicateKeyPathWorkoutType](healthkit/hkpredicatekeypathworkouttype.md)
- [HKPredicateKeyPathWorkoutTotalDistance](healthkit/hkpredicatekeypathworkouttotaldistance.md)
- [HKPredicateKeyPathWorkoutTotalEnergyBurned](healthkit/hkpredicatekeypathworkouttotalenergyburned.md)
- [HKPredicateKeyPathWorkoutAverageQuantity](healthkit/hkpredicatekeypathworkoutaveragequantity.md)
- [HKPredicateKeyPathWorkoutMaximumQuantity](healthkit/hkpredicatekeypathworkoutmaximumquantity.md)
- [HKPredicateKeyPathWorkoutMinimumQuantity](healthkit/hkpredicatekeypathworkoutminimumquantity.md)
- [HKPredicateKeyPathWorkoutSumQuantity](healthkit/hkpredicatekeypathworkoutsumquantity.md)
