HKMetadataKeyAlpineSlopeGrade
A key that indicates the percent slope of a ski run.
Declaration
let HKMetadataKeyAlpineSlopeGrade: StringMentioned in
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).