---
title: workoutConfiguration
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkoutsession/workoutconfiguration
---

# workoutConfiguration

The configuration object that describes this workout.

## Declaration

```swift
@NSCopying var workoutConfiguration: HKWorkoutConfiguration { get }
```

## Discussion

Discussion Returns a copy of the configuration object passed to init(configuration:) when instantiating the workout session. Changes made to the returned value have no affect on the workout session.

## See Also

### Accessing session data

- [endDate](healthkit/hkworkoutsession/enddate.md)
- [startDate](healthkit/hkworkoutsession/startdate.md)
- [state](healthkit/hkworkoutsession/state.md)
- [type](healthkit/hkworkoutsession/type.md)
