underwaterDepth
A quantity sample that records a person’s depth underwater.
Declaration
static let underwaterDepth: HKQuantityTypeIdentifierDiscussion
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.