---
title: "widgetList(_:shouldReorderRow:)"
framework: Notification Center
role: symbol
role_heading: Instance Method
platforms: [macOS 10.10+]
path: "notificationcenter/ncwidgetlistviewdelegate/widgetlist(_:shouldreorderrow:)"
---

# widgetList(_:shouldReorderRow:)

Asks the delegate to allow or prohibit the specified row to be moved to a new location in the list.

## Declaration

```swift
optional func widgetList(_ list: NCWidgetListViewController, shouldReorderRow row: Int) -> Bool
```

## Parameters

- `list`: The widget’s list view controller.
- `row`: The row that should be moved.

## Return Value

Return Value true if specified row can be moved, otherwise false.

## Discussion

Discussion List item reordering is not enabled unless the delegate implements this method and widgetList(_:didReorderRow:toRow:). Returning false prohibits row from being moved. Returning YES allows row to be moved, and the delegate will be called again when the item that row represents is relocated in the list view controller’s contents array.

## See Also

### Reordering List Rows

- [widgetList(_:didReorderRow:toRow:)](notificationcenter/ncwidgetlistviewdelegate/widgetlist(_:didreorderrow:torow:).md)
