---
title: "reorder(displayed:options:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uicellaccessory-swift.struct/reorder(displayed:options:)"
---

# reorder(displayed:options:)

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

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UICellAccessory-swift.struct/DisplayedState/whenEditing.
- `options`: Configuration options for the reorder accessory. See doc://com.apple.uikit/documentation/UIKit/UICellAccessory-swift.struct/ReorderOptions for possible configuration options.

## Return Value

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

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.

## See Also

### Creating a reorder accessory

- [UICellAccessory.ReorderOptions](uikit/uicellaccessory-swift.struct/reorderoptions.md)
