Skip to content
AF
HealthKit reference

distanceSkatingSports: HealthKit quantity type

HKQuantityTypeIdentifierDistanceSkatingSports · read from Apple’s documentation on 2026-10-02

HKQuantityTypeIdentifier.distanceSkatingSports (Objective-C HKQuantityTypeIdentifierDistanceSkatingSports) is a HealthKit quantity type in Apple's "Activity" group. Apple's abstract: “A quantity sample type that measures the distance the user has moved by skating.” Apple's discussion says its samples use length units and measure cumulative values, so in HKStatisticsQuery it takes .cumulativeSum. It is available from iOS 18.0 and watchOS 11.0.

What Apple says distanceSkatingSports is

A quantity sample type that measures the distance the user has moved by skating.

Apple’s abstract, quoted from its distanceSkatingSports reference page, read 2026-10-02. Apple’s discussion of the type runs 28 words.

Swift
HKQuantityTypeIdentifier.distanceSkatingSports
Objective-C
HKQuantityTypeIdentifierDistanceSkatingSports
Family
HKQuantityTypeIdentifier
Apple's topic group
Activity
Group page
Activity

Availability

The versions Apple’s documentation data gives for distanceSkatingSports, platform by platform, as read on 2026-10-02.

PlatformIntroducedDeprecated
iOS18.0—
iPadOS18.0—
Mac Catalyst18.0—
macOS15.0—
visionOS2.0—
watchOS11.0—

The rest of that release: HealthKit Types Introduced in iOS 18.

Sum or average, and in which units

Apple states both of these in the prose of the type’s discussion, not as properties, so they are derived from Apple’s sentence and the sentence is shown with each.

Aggregation style

cumulative — in an HKStatisticsQuery, use .cumulativeSum. Apple’s sentence:

These samples use length units (described in ) and measure cumulative values (described in ).

Unit family

length — every type in this family is on the HKUnit reference.

Apple states it in the same sentence as the aggregation style, quoted above.

Empty parentheses and a dangling “described in” mark links in Apple’s sentence to other documentation pages: the generator keeps the sentence’s text, not its links, and the quote is left as stored rather than repaired.

Can apps write distanceSkatingSports?

Apple’s documentation for distanceSkatingSports does not state that its samples are read-only. Apple states read-only status only in prose, and its silence is not a statement either way, so this page makes no claim that apps can save it.

On Android Health Connect

No verified Health Connect counterpart. The cross-platform matrix pairs only metrics checked against both Apple’s and Google’s documentation, and distanceSkatingSports is not among them. A similarly named Health Connect record may exist, but a name match is not a verified mapping.

Questions

Should I sum or average distanceSkatingSports in HealthKit?
Sum it. Apple's documentation for distanceSkatingSports describes it as measuring cumulative values, so an HKStatisticsQuery over it takes .cumulativeSum. Apple's sentence, as read on 2026-10-02: "These samples use length units (described in ) and measure cumulative values (described in )."
Which unit family does Apple give distanceSkatingSports?
Length. Apple's discussion of distanceSkatingSports says its samples use length units: "These samples use length units (described in ) and measure cumulative values (described in )."
Which iOS version added distanceSkatingSports?
iOS 18.0. Apple's availability data for distanceSkatingSports lists iOS 18.0, iPadOS 18.0, Mac Catalyst 18.0, macOS 15.0, visionOS 2.0 and watchOS 11.0.

Sources checked

Apple’s abstract and sentences are quoted for identification; the page layout, the capsule and the cross-platform pairing are AIFitnessAPI’s. Generated from Apple’s documentation by scripts/fetch-healthkit-identifiers.mjs, not typed by hand — the same data as the full identifier table.

← All HealthKit type identifiers · Activity