---
title: HKMetadataKeyWeatherCondition
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyweathercondition
---

# HKMetadataKeyWeatherCondition

A key that represents the weather condition during the sample.

## Declaration

```swift
let HKMetadataKeyWeatherCondition: String
```

## Discussion

Discussion This key takes an an NSNumber value that contains an HKWeatherCondition value. Set this key on an HKWorkout object to represent the overall weather condition during the workout.

## Topics

### Valid Weather Conditions

- [HKWeatherCondition](healthkit/hkweathercondition.md)

## See Also

### Weather Keys

- [HKMetadataKeyBarometricPressure](healthkit/hkmetadatakeybarometricpressure.md)
- [HKMetadataKeyWeatherHumidity](healthkit/hkmetadatakeyweatherhumidity.md)
- [HKMetadataKeyWeatherTemperature](healthkit/hkmetadatakeyweathertemperature.md)
