---
title: HKPredicateKeyPathWorkoutActivityDuration
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathworkoutactivityduration
---

# HKPredicateKeyPathWorkoutActivityDuration

The key path for accessing activities with a matching duration.

## Declaration

```swift
let HKPredicateKeyPathWorkoutActivityDuration: String
```

## See Also

### Specifying predicate key paths

- [HKPredicateKeyPathWorkoutActivity](healthkit/hkpredicatekeypathworkoutactivity.md)
- [HKPredicateKeyPathWorkoutActivityType](healthkit/hkpredicatekeypathworkoutactivitytype.md)
- [HKPredicateKeyPathWorkoutActivityStartDate](healthkit/hkpredicatekeypathworkoutactivitystartdate.md)
- [HKPredicateKeyPathWorkoutActivityEndDate](healthkit/hkpredicatekeypathworkoutactivityenddate.md)
- [HKPredicateKeyPathWorkoutActivityAverageQuantity](healthkit/hkpredicatekeypathworkoutactivityaveragequantity.md)
- [HKPredicateKeyPathWorkoutActivityMaximumQuantity](healthkit/hkpredicatekeypathworkoutactivitymaximumquantity.md)
- [HKPredicateKeyPathWorkoutActivityMinimumQuantity](healthkit/hkpredicatekeypathworkoutactivityminimumquantity.md)
- [HKPredicateKeyPathWorkoutActivitySumQuantity](healthkit/hkpredicatekeypathworkoutactivitysumquantity.md)
