---
title: workoutEvents
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkoutactivity/workoutevents
---

# workoutEvents

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

## Declaration

```swift
var workoutEvents: [HKWorkoutEvent] { get }
```

## Discussion

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

- [uuid](healthkit/hkworkoutactivity/uuid.md)
- [startDate](healthkit/hkworkoutactivity/startdate.md)
- [endDate](healthkit/hkworkoutactivity/enddate.md)
- [duration](healthkit/hkworkoutactivity/duration.md)
- [allStatistics](healthkit/hkworkoutactivity/allstatistics.md)
- [statistics(for:)](healthkit/hkworkoutactivity/statistics(for:).md)
- [metadata](healthkit/hkworkoutactivity/metadata.md)
- [workoutConfiguration](healthkit/hkworkoutactivity/workoutconfiguration.md)
