Global Variable

HKMetadataKeyAlpineSlopeGrade

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

Declaration

let HKMetadataKeyAlpineSlopeGrade: String

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 downhillSkiing and snowboarding workout sessions (Apple Watch Series 3 only).