distanceCycling
A quantity sample type that measures the distance the user has moved by cycling.
Declaration
static let distanceCycling: HKQuantityTypeIdentifierMentioned in
Discussion
These samples use length units (described in HKUnit) and measure cumulative values (described in HKQuantityAggregationStyle). During outdoor cycling workouts, the system automatically records distance samples on Apple Watch. During indoor cycling workouts, the system automatically records distance samples on Apple Watch when connected to a peripheral that provides cycling speed. Sample data may be condensed and/or coalesced by HealthKit. For more information, see Accessing condensed workout samples.