---
title: waterTemperature
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkquantitytypeidentifier/watertemperature
---

# waterTemperature

A quantity sample that records the water temperature.

## Declaration

```swift
static let waterTemperature: HKQuantityTypeIdentifier
```

## Discussion

Discussion Apple Watch Ultra automatically records these samples during dive sessions and swimming workouts. Water temperature samples use temperature units (see HKUnit) and measure discrete values (see HKQuantityAggregationStyle). Sample data may be condensed and/or coalesced by HealthKit. For more information, see Accessing condensed workout samples.

## See Also

### Diving

- [underwaterDepth](healthkit/hkquantitytypeidentifier/underwaterdepth.md)
