---
title: HKMetadataKeyElevationDescended
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyelevationdescended
---

# HKMetadataKeyElevationDescended

A key that indicates the cumulative elevation descended during a workout.

## Declaration

```swift
let HKMetadataKeyElevationDescended: String
```

## Mentioned in

Receiving Downhill Skiing and Snowboarding Data

## Discussion

Discussion Set this key on  a workout, workout segment, or a quantity sample that represents distance. Set its value to an HKQuantity object with a length unit. HealthKit assigns this metadata key to the segments it automatically creates for HKWorkoutActivityType.downhillSkiing and HKWorkoutActivityType.snowboarding workout sessions (Apple Watch Series 3 only).

## See Also

### Skiing and Snowboarding

- [HKMetadataKeyAlpineSlopeGrade](healthkit/hkmetadatakeyalpineslopegrade.md)
- [HKMetadataKeyElevationAscended](healthkit/hkmetadatakeyelevationascended.md)
