<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NotificationCenter",
  "identifier" : "/documentation/NotificationCenter/NCWidgetListViewDelegate/widgetList(_:shouldReorderRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Notification Center"
    ],
    "preciseIdentifier" : "c:objc(pl)NCWidgetListViewDelegate(im)widgetList:shouldReorderRow:"
  },
  "title" : "widgetList(_:shouldReorderRow:)"
}
-->

# widgetList(_:shouldReorderRow:)

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

```
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

<doc://com.apple.documentation/documentation/Swift/true> if specified row can be moved, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

List item reordering is not enabled unless the delegate implements this method and [`widgetList(_:didReorderRow:toRow:)`](/documentation/NotificationCenter/NCWidgetListViewDelegate/widgetList(_:didReorderRow:toRow:)). Returning <doc://com.apple.documentation/documentation/Swift/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`](/documentation/NotificationCenter/NCWidgetListViewController/contents) array.

---

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)