---
title: underwaterDepth
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkquantitytypeidentifier/underwaterdepth
---

# underwaterDepth

A quantity sample that records a person’s depth underwater.

## Declaration

```swift
static let underwaterDepth: HKQuantityTypeIdentifier
```

## Discussion

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

## See Also

### Diving

- [waterTemperature](healthkit/hkquantitytypeidentifier/watertemperature.md)
