---
title: totalFlightsClimbed
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkout/totalflightsclimbed
---

# totalFlightsClimbed

The total number of flights of stairs climbed during the workout.

## Declaration

```swift
var totalFlightsClimbed: HKQuantity? { get }
```

## Discussion

Discussion This property contains a quantity using count units, or nil. note: Provide the total flights climbed value whenever the number of flights climbed is relevant to the workout type. In addition, add flights climbed samples to a workout using the add(_:to:completion:) method. These samples should sum up to the total flights climbed, while providing detailed information about how the intensity changes over the duration of the workout.

## See Also

### Accessing workout data

- [duration](healthkit/hkworkout/duration.md)
- [workoutActivityType](healthkit/hkworkout/workoutactivitytype.md)
- [workoutActivities](healthkit/hkworkout/workoutactivities.md)
- [workoutEvents](healthkit/hkworkout/workoutevents.md)
- [statistics(for:)](healthkit/hkworkout/statistics(for:).md)
- [allStatistics](healthkit/hkworkout/allstatistics.md)
- [totalDistance](healthkit/hkworkout/totaldistance.md)
- [totalEnergyBurned](healthkit/hkworkout/totalenergyburned.md)
- [totalSwimmingStrokeCount](healthkit/hkworkout/totalswimmingstrokecount.md)
