NCWidgetListViewDelegate
The interface for handling content display and editing in the list view of a macOS Today widget.
Declaration
protocol NCWidgetListViewDelegate : NSObjectProtocolOverview
The NCWidgetListViewDelegate protocol defines methods that handle content display and editing in the list view of a Today widget. The delegate of an NCWidgetListViewController must adopt the NCWidgetListViewDelegate protocol.
The single required method in the protocol, widgetList(_:viewControllerForRow:), creates a view controller for the contents of one row in the widget’s list view. Optional methods in the NCWidgetListViewDelegate protocol support editing actions, such as adding a new list item and reordering or deleting list rows.