---
title: HKMetadataKeySwimmingLocationType
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyswimminglocationtype
---

# HKMetadataKeySwimmingLocationType

A key that indicates the location for a swimming workout.

## Declaration

```swift
let HKMetadataKeySwimmingLocationType: String
```

## Discussion

Discussion Set this key on a workout object that represents swimming. Set its value to an NSNumber object that contains a valid value from the HKWorkoutSwimmingLocationType enumeration.

## Topics

### Valid Swimming Locations

- [HKWorkoutSwimmingLocationType](healthkit/hkworkoutswimminglocationtype.md)

## See Also

### Swimming

- [HKMetadataKeySwimmingStrokeStyle](healthkit/hkmetadatakeyswimmingstrokestyle.md)
- [HKMetadataKeyLapLength](healthkit/hkmetadatakeylaplength.md)
- [HKMetadataKeySWOLFScore](healthkit/hkmetadatakeyswolfscore.md)
- [HKMetadataKeyWaterSalinity](healthkit/hkmetadatakeywatersalinity.md)
