Contents

workoutEvents

An array of events associated with the containing workout and occurring during the activity’s duration.

Declaration

var workoutEvents: [HKWorkoutEvent] { get }

Discussion

HealthKit sorts the events in ascending order. These events are a subset of the containing workout’s events, that take place between the activity’s startDate and endDate. This includes any event that partially overlaps the activity. As a result, these events may appear in more than one activity.

See Also

Accessing workout data