<!--
{
  "availability" : [
    "macOS: 10.10.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NotificationCenter",
  "identifier" : "/documentation/NotificationCenter/NCWidgetSearchViewController/searchResults",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Notification Center"
    ],
    "preciseIdentifier" : "c:objc(cs)NCWidgetSearchViewController(py)searchResults"
  },
  "title" : "searchResults"
}
-->

# searchResults

An array of search results.

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

## Discussion

The [`delegate`](/documentation/NotificationCenter/NCWidgetSearchViewController/delegate) updates this property with the results of the search. For each object in `searchResults`, the search view controller uses the [`searchResultKeyPath`](/documentation/NotificationCenter/NCWidgetSearchViewController/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:)`](/documentation/NotificationCenter/NCWidgetSearchViewDelegate/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:`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)