---
title: HKMetadataKeyIndoorWorkout
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyindoorworkout
---

# HKMetadataKeyIndoorWorkout

A key that indicates whether the workout was performed indoors.

## Declaration

```swift
let HKMetadataKeyIndoorWorkout: String
```

## Discussion

Discussion Set this key’s value to true if the workout was performed indoors; otherwise, set it to false.

## See Also

### Workout Type

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