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

# searchResults

An array of search results.

## Declaration

```swift
var searchResults: [Any]? { get set }
```

## Discussion

Discussion The delegate updates this property with the results of the search. For each object in searchResults, the search view controller uses the searchResultKeyPath property to find the description of the object to display in search view. When a user chooses an item in the search view’s results list, the search view controller calls widgetSearch(_:resultSelected:) on its delegate. If the widget presented the search view using presentViewControllerInWidget:, this action causes the search view to be dismissed by dismissViewController:.

## See Also

### Displaying Search Results

- [searchResultKeyPath](notificationcenter/ncwidgetsearchviewcontroller/searchresultkeypath.md)
