---
title: stepCount
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkquantitytypeidentifier/stepcount
---

# stepCount

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

## Declaration

```swift
static let stepCount: HKQuantityTypeIdentifier
```

## Discussion

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

- [HKQuantityTypeIdentifier](healthkit/hkquantitytypeidentifier.md)
- [HKQuantitySample](healthkit/hkquantitysample.md)
- [HKQuantity](healthkit/hkquantity.md)

### Activity

- [distanceWalkingRunning](healthkit/hkquantitytypeidentifier/distancewalkingrunning.md)
- [runningSpeed](healthkit/hkquantitytypeidentifier/runningspeed.md)
- [runningStrideLength](healthkit/hkquantitytypeidentifier/runningstridelength.md)
- [runningPower](healthkit/hkquantitytypeidentifier/runningpower.md)
- [runningGroundContactTime](healthkit/hkquantitytypeidentifier/runninggroundcontacttime.md)
- [runningVerticalOscillation](healthkit/hkquantitytypeidentifier/runningverticaloscillation.md)
- [distanceCycling](healthkit/hkquantitytypeidentifier/distancecycling.md)
- [pushCount](healthkit/hkquantitytypeidentifier/pushcount.md)
- [distanceWheelchair](healthkit/hkquantitytypeidentifier/distancewheelchair.md)
- [swimmingStrokeCount](healthkit/hkquantitytypeidentifier/swimmingstrokecount.md)
- [distanceSwimming](healthkit/hkquantitytypeidentifier/distanceswimming.md)
- [distanceDownhillSnowSports](healthkit/hkquantitytypeidentifier/distancedownhillsnowsports.md)
- [basalEnergyBurned](healthkit/hkquantitytypeidentifier/basalenergyburned.md)
- [activeEnergyBurned](healthkit/hkquantitytypeidentifier/activeenergyburned.md)
- [flightsClimbed](healthkit/hkquantitytypeidentifier/flightsclimbed.md)
