---
title: HKPredicateKeyPathWorkoutTotalDistance
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathworkouttotaldistance
---

# HKPredicateKeyPathWorkoutTotalDistance

The key path for accessing the workout’s total distance.

## Declaration

```swift
let HKPredicateKeyPathWorkoutTotalDistance: String
```

## See Also

### Specifying predicate key paths

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