widgetList(_:shouldReorderRow:)
Asks the delegate to allow or prohibit the specified row to be moved to a new location in the list.
Declaration
optional func widgetList(_ list: NCWidgetListViewController, shouldReorderRow row: Int) -> BoolParameters
- list:
The widget’s list view controller.
- row:
The row that should be moved.
Return Value
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.