<!--
{
  "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/HKMetadataKeyWeatherTemperature",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKMetadataKeyWeatherTemperature"
  },
  "title" : "HKMetadataKeyWeatherTemperature"
}
-->

# HKMetadataKeyWeatherTemperature

A key that represents the weather temperature during the sample.

```
let HKMetadataKeyWeatherTemperature: String
```

## Discussion

This key takes an `HKQuantity` value expressed in a unit of temperature. Set this key on an [`HKWorkout`](/documentation/HealthKit/HKWorkout) object to represent the overall temperature during the workout.

---

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)