<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantityTypeIdentifier/waterTemperature",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKQuantityTypeIdentifierWaterTemperature"
  },
  "title" : "waterTemperature"
}
-->

# waterTemperature

A quantity sample that records the water temperature.

```
static let waterTemperature: HKQuantityTypeIdentifier
```

## Discussion

Apple Watch Ultra automatically records these samples during dive sessions and swimming workouts.

Water temperature samples use temperature units (see [`HKUnit`](/documentation/HealthKit/HKUnit)) and measure discrete values (see [`HKQuantityAggregationStyle`](/documentation/HealthKit/HKQuantityAggregationStyle)). Sample data may be condensed and/or coalesced by HealthKit. For more information, see <doc://com.apple.healthkit/documentation/HealthKit/accessing-condensed-workout-samples>.

---

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)