---
title: HKMetadataKeyGroupFitness
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeygroupfitness
---

# HKMetadataKeyGroupFitness

A key that indicates whether the workout was performed as part of a group fitness class.

## Declaration

```swift
let HKMetadataKeyGroupFitness: String
```

## Discussion

Discussion Set this key’s value to true if the workout was part of a group fitness class; otherwise, set it tofalse.

## See Also

### Workout Type

- [HKMetadataKeyActivityType](healthkit/hkmetadatakeyactivitytype.md)
- [HKMetadataKeyAppleFitnessPlusSession](healthkit/hkmetadatakeyapplefitnessplussession.md)
- [HKMetadataKeyCoachedWorkout](healthkit/hkmetadatakeycoachedworkout.md)
- [HKMetadataKeyIndoorWorkout](healthkit/hkmetadatakeyindoorworkout.md)
- [HKMetadataKeyWorkoutBrandName](healthkit/hkmetadatakeyworkoutbrandname.md)
