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

# widgetList(_:didReorderRow:toRow:)

Tells the delegate that the specified row was moved to a new location.

## Declaration

```swift
optional func widgetList(_ list: NCWidgetListViewController, didReorderRow row: Int, toRow newIndex: Int)
```

## Parameters

- `list`: The widget’s list view controller.
- `row`: The row that was moved.
- `newIndex`: The new location of row.

## Discussion

Discussion List item reordering is not enabled unless the delegate implements this method and widgetList(_:shouldReorderRow:). The item represented by row is moved to its new location in the list view controller’s contents array before this method is called.

## See Also

### Reordering List Rows

- [widgetList(_:shouldReorderRow:)](notificationcenter/ncwidgetlistviewdelegate/widgetlist(_:shouldreorderrow:).md)
