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

# widgetList(_:viewControllerForRow:)

Asks the delegate for a content view controller for the specified row.

## Declaration

```swift
func widgetList(_ list: NCWidgetListViewController, viewControllerForRow row: Int) -> NSViewController
```

## Parameters

- `list`: The widget’s list view controller that is requesting this content view controller.
- `row`: The number of the row in the list.

## Return Value

Return Value A custom view controller to manage the content in the specified row.
