<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICellAccessory-swift.struct/reorder(displayed:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UICellAccessoryV7reorder9displayed7optionsA2C14DisplayedStateO_AC14ReorderOptionsVtFZ"
  },
  "title" : "reorder(displayed:options:)"
}
-->

# reorder(displayed:options:)

Creates a reorder system accessory with the specified display state and configuration options.

```
static func reorder(displayed: UICellAccessory.DisplayedState = .whenEditing, options: UICellAccessory.ReorderOptions = ReorderOptions()) -> UICellAccessory
```

## Parameters

`displayed`

The cell-editing states that the reorder accessory appears in. This parameter has a default value of [`UICellAccessory.DisplayedState.whenEditing`](/documentation/UIKit/UICellAccessory-swift.struct/DisplayedState/whenEditing).

`options`

Configuration options for the reorder accessory. See [`UICellAccessory.ReorderOptions`](/documentation/UIKit/UICellAccessory-swift.struct/ReorderOptions) for possible configuration options.

## Return Value

A configured reorder cell accessory. This accessory is three horizontal lines with the default system gray color. This accessory appears on the trailing edge of the cell.

## Discussion

If your collection view supports interactive reordering of its cells, a user can drag the cell by its reorder accessory to change the order of the cell in the collection view.

---

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)