Contents

stepCount

A quantity sample type that measures the number of steps the user has taken.

Declaration

static let stepCount: HKQuantityTypeIdentifier

Discussion

These samples use count units (described in HKUnit) and measure cumulative values (described in HKQuantityAggregationStyle). The system automatically records samples on iPhone and Apple Watch. Sample data may be condensed and/or coalesced by HealthKit. For more information, see Accessing condensed workout samples.

See Also

Related Documentation

Activity