Contents

waterTemperature

A quantity sample that records the water temperature.

Declaration

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) 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