---
title: workoutActivityType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkout/workoutactivitytype
---

# workoutActivityType

The type of activity performed during the workout.

## Declaration

```swift
var workoutActivityType: HKWorkoutActivityType { get }
```

## Discussion

Discussion For the complete list of activity types, see HKWorkoutActivityType.

## See Also

### Accessing workout data

- [duration](healthkit/hkworkout/duration.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)
- [totalFlightsClimbed](healthkit/hkworkout/totalflightsclimbed.md)
- [totalSwimmingStrokeCount](healthkit/hkworkout/totalswimmingstrokecount.md)
