<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMotion",
  "identifier" : "/documentation/CoreMotion/CMWaterSubmersionEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Motion"
    ],
    "preciseIdentifier" : "c:objc(cs)CMWaterSubmersionEvent"
  },
  "title" : "CMWaterSubmersionEvent"
}
-->

# CMWaterSubmersionEvent

An event indicating that the device’s submersion state has changed.

```
class CMWaterSubmersionEvent
```

## Topics

### Accessing event data

[`var date: Date`](/documentation/CoreMotion/CMWaterSubmersionEvent/date)

The time and date of the event.

[`var state: CMWaterSubmersionEvent.State`](/documentation/CoreMotion/CMWaterSubmersionEvent/state-swift.property)

The new submersion state.

[`enum State`](/documentation/CoreMotion/CMWaterSubmersionEvent/State-swift.enum)

The device’s submersion state.

### Initializers

[`init?(coder: NSCoder)`](/documentation/CoreMotion/CMWaterSubmersionEvent/init(coder:))

## Relationships

### Conforms To

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)