---
title: "manager(_:didUpdate:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmwatersubmersionmanagerdelegate/manager(_:didupdate:)-18wua"
---

# manager(_:didUpdate:)

Provides the delegate with updated water temperature data.

## Declaration

```swift
optional func manager(_ manager: CMWaterSubmersionManager, didUpdate measurement: CMWaterTemperature)
```

## Parameters

- `manager`: The manager for water submersion data.
- `measurement`: A data object that contains information about the water temperature and the measurement’s uncertainty.

## Discussion

Discussion Implement this method to receive water temperature updates. The system sends temperature updates three times a second while submerged. When on the surface, the system provides updates at a slower rate, and may stop providing updates if the device isn’t moving. nonisolated func manager(_ manager: CMWaterSubmersionManager, didUpdate measurement: CMWaterTemperature) {     let temp = measurement.temperature     let uncertainty = measurement.temperatureUncertainty     let currentTemperature = "\(temp.value) +/- \(uncertainty.value) \(temp.unit)"

logger.info(("*** \(currentTemperature) ***"))

Task {         await myAdd(temperature:measurement)     } }

## See Also

### Receiving updates

- [manager(_:didUpdate:)](coremotion/cmwatersubmersionmanagerdelegate/manager(_:didupdate:)-6qux6.md)
- [manager(_:didUpdate:)](coremotion/cmwatersubmersionmanagerdelegate/manager(_:didupdate:)-7nhjb.md)
- [manager(_:errorOccurred:)](coremotion/cmwatersubmersionmanagerdelegate/manager(_:erroroccurred:).md)
