<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DockKit",
  "identifier" : "/documentation/DockKit/DockAccessory/motionStates-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "DockKit"
    ],
    "preciseIdentifier" : "s:7DockKit0A9AccessoryC12motionStatesAC06MotionE0Vvp"
  },
  "title" : "motionStates"
}
-->

# motionStates

Motion information from the dock accessory that includes current orientation and velocity of all axes.

```
final var motionStates: DockAccessory.MotionStates { get throws }
```

## Return Value

Motion states with the current orientation and velocity. The dock accessory controls the rate at which the state changes.

## Discussion

This value holds a [`DockAccessory.MotionStates`](/documentation/DockKit/DockAccessory/MotionStates-swift.struct) object, an asynchronous iterator used to find the desired dock accessory.

> Throws: ``doc://com.apple.DockKit/documentation/DockKit/DockKitError/notConnected`` if device is disconnected, or ``doc://com.apple.DockKit/documentation/DockKit/DockKitError/notSupportedByDevice`` if device doesn’t support updates.

---

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)