Instance Property

workoutActivityType

The type of activity performed during the workout.

Declaration

var workoutActivityType: HKWorkoutActivityType { get }

Discussion

For the complete list of activity types, see HKWorkoutActivityType.

See Also

Getting Property Data

var duration: TimeInterval

The workout’s duration.

var totalDistance: HKQuantity?

The total distance traveled during the workout.

var totalEnergyBurned: HKQuantity?

The total active energy burned during the workout.

var workoutEvents: [HKWorkoutEvent]?

An array of workout event objects.

var totalFlightsClimbed: HKQuantity?

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

var totalSwimmingStrokeCount: HKQuantity?

The total stroke count for the workout.