---
title: motionStates
framework: dockkit
role: symbol
role_heading: Instance Property
path: dockkit/dockaccessory/motionstates-swift.property
---

# motionStates

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

## Declaration

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

## Return Value

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

## Discussion

Discussion This value holds a DockAccessory.MotionStates object, an asynchronous iterator used to find the desired dock accessory. note: DockKitError.notConnected if device is disconnected, or DockKitError.notSupportedByDevice if device doesn’t support updates.

## See Also

### Getting position and limits

- [limits](dockkit/dockaccessory/limits-swift.property.md)
- [DockAccessory.MotionState](dockkit/dockaccessory/motionstate.md)
- [DockAccessory.MotionStates](dockkit/dockaccessory/motionstates-swift.struct.md)
- [DockAccessory.Limits](dockkit/dockaccessory/limits-swift.struct.md)
