<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKMetadataKeyWeatherCondition",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKMetadataKeyWeatherCondition"
  },
  "title" : "HKMetadataKeyWeatherCondition"
}
-->

# HKMetadataKeyWeatherCondition

A key that represents the weather condition during the sample.

```
let HKMetadataKeyWeatherCondition: String
```

## Discussion

This key takes an an <doc://com.apple.documentation/documentation/Foundation/NSNumber> value that contains an [`HKWeatherCondition`](/documentation/HealthKit/HKWeatherCondition) value. Set this key on an [`HKWorkout`](/documentation/HealthKit/HKWorkout) object to represent the overall weather condition during the workout.

## Topics

### Valid Weather Conditions

[`HKWeatherCondition`](/documentation/HealthKit/HKWeatherCondition)

Constants that indicate a type of weather.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)