Contents

workoutEvents

An array of workout event objects.

Declaration

var workoutEvents: [HKWorkoutEvent]? { get }

Discussion

This array specifies when the user has paused and resumed the workout activity. This method calculates the workout’s duration based on the amount of active time between the provided start and end dates. For more information on workout events, see HKWorkoutEvent.

See Also

Accessing workout data