Contents

widgetList(_:didReorderRow:toRow:)

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

Declaration

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

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