Instance Property


The total active energy burned during the workout.


var totalEnergyBurned: HKQuantity? { get }


This property contains a quantity using energy units, or nil.

See Also

Getting Property Data

var duration: TimeInterval

The workout’s duration.

var totalDistance: HKQuantity?

The total distance traveled during the workout.

var workoutActivityType: HKWorkoutActivityType

The type of activity performed 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software