<!--
{
  "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/State",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "DockKit"
    ],
    "preciseIdentifier" : "s:7DockKit0A9AccessoryC5StateO"
  },
  "title" : "DockAccessory.State"
}
-->

# DockAccessory.State

The state of a dock accessory.

```
enum State
```

## Topics

### Getting properties

[`case docked`](/documentation/DockKit/DockAccessory/State/docked)

The dock accessory doesn’t contain a device.

[`case undocked`](/documentation/DockKit/DockAccessory/State/undocked)

The dock accessory contains a device.

[`var debugDescription: String`](/documentation/DockKit/DockAccessory/State/debugDescription)

The text description of the dock accessory state.

## Relationships

### Conforms To

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

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

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

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

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

---

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)