---
title: HKMetadataKeyLapLength
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeylaplength
---

# HKMetadataKeyLapLength

A key that indicates the length of a lap during a workout.

## Declaration

```swift
let HKMetadataKeyLapLength: String
```

## Discussion

Discussion Set this key on  a workout, workout segment, or a quantity sample that represents distance. Set its value to an HKQuantity object that uses length units (described in HKUnit).

## See Also

### Swimming

- [HKMetadataKeySwimmingLocationType](healthkit/hkmetadatakeyswimminglocationtype.md)
- [HKMetadataKeySwimmingStrokeStyle](healthkit/hkmetadatakeyswimmingstrokestyle.md)
- [HKMetadataKeySWOLFScore](healthkit/hkmetadatakeyswolfscore.md)
- [HKMetadataKeyWaterSalinity](healthkit/hkmetadatakeywatersalinity.md)
