---
title: HKMetadataKeyAlpineSlopeGrade
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyalpineslopegrade
---

# HKMetadataKeyAlpineSlopeGrade

A key that indicates the percent slope of a ski run.

## Declaration

```swift
let HKMetadataKeyAlpineSlopeGrade: String
```

## Mentioned in

Receiving Downhill Skiing and Snowboarding Data

## Discussion

Discussion Set this key on quantity samples that represent distance, or on workout segments. Set its value to an HKQuantity object with a percent unit, where 100% indicates a 45 degree slope. 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

- [HKMetadataKeyElevationAscended](healthkit/hkmetadatakeyelevationascended.md)
- [HKMetadataKeyElevationDescended](healthkit/hkmetadatakeyelevationdescended.md)
