<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMotion",
  "identifier" : "/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Motion",
      "CoreMotion"
    ],
    "preciseIdentifier" : "c:@E@CMWaterSubmersionDepthState"
  },
  "title" : "CMWaterSubmersionMeasurement.DepthState"
}
-->

# CMWaterSubmersionMeasurement.DepthState

A state based on the device’s depth under water.

```
enum DepthState
```

## Topics

### Depth states

[`case notSubmerged`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/notSubmerged)

The device is not submerged in water.

[`case submergedShallow`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/submergedShallow)

The device is submerged, but less than 1 meter under water.

[`case submergedDeep`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/submergedDeep)

The device is submerged at least 1 meter under water.

[`case approachingMaxDepth`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/approachingMaxDepth)

The device is approaching the maximum safe diving depth.

[`case pastMaxDepth`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/pastMaxDepth)

The device has exceeded the maximum safe diving depth.

[`case sensorDepthError`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/sensorDepthError)

An error with the depth sensor occurred.

[`case unknown`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/unknown)

The device’s depth state is unknown.

### Initializers

[`init?(rawValue: Int)`](/documentation/CoreMotion/CMWaterSubmersionMeasurement/DepthState/init(rawValue:))

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)