---
title: contents
framework: Notification Center
role: symbol
role_heading: Instance Property
platforms: [macOS 10.10+]
path: notificationcenter/ncwidgetlistviewcontroller/contents
---

# contents

An array of objects to display in the list view.

## Declaration

```swift
var contents: [Any] { get set }
```

## Discussion

Discussion The list view controller asks its delegate for a new content view controller for each object in contents, and sets the representedObject of the newly created content view controller accordingly. To optimize content resetting, the list view controller may reuse content view controllers for identical objects that already exist in contents.

## See Also

### Accessing Content

- [row(for:)](notificationcenter/ncwidgetlistviewcontroller/row(for:).md)
- [viewController(atRow:makeIfNecessary:)](notificationcenter/ncwidgetlistviewcontroller/viewcontroller(atrow:makeifnecessary:).md)
