Beyond counting steps
Show Apple's description.
Move beyond step counting in your app and give people a much richer understanding of their mobility. We’ll detail how you can take advantage of mobility metrics in iOS and watchOS to measure movement in more distinct and actionable ways. Learn about the latest HealthKit APIs for accessing mobility data, strategies for meaningful data aggregation, and how to interpret results for people using your app.
Apple is introducing a category of metrics to HealthKit that captures the complex and important elements of human movement, all via iPhone (8 and later) and Apple Watch (4 and later).
New Mobility metrics on iPhone
- Walking speed (
.walkingspeed): Rate of travel over flat ground
- Step length (
.walkingStepLength): Distance between feet when walking
- Double support time (
.walkingDoubleSupportPercentage): Percentage of time with two feet on the ground
- Walking asymmetry (
.walkingAsymmetryPercentage): Percentage of walking when left and tight step time are different
New Mobility metrics on Apple Watch
- Stair speed up (
.stairAscentSpeed): Rate of vertical ascent on stairs
- Stair speed down (
.stairDescentSpeed): Rate of vertical descent on stairs
- Six-minute walk (
.sixMinuteWalkTestDistance): Weekly estimate of distance that could be walked in six minutes on flat ground
How to read HealthKit data
Fetch the data of interest in the relevant time range: