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

# type

A value that indicates whether the session is a primary session or a mirrored session.

## Declaration

```swift
var type: HKWorkoutSessionType { get }
```

## See Also

### Accessing session data

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