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

# searchResultKeyPath

A key path for the string property to display for each object in the search results array.

```
var searchResultKeyPath: String? { get set }
```

## Discussion

The search view controller uses the key path to find the textual description of each object in [`searchResults`](/documentation/NotificationCenter/NCWidgetSearchViewController/searchResults). The default value of this property is “description”.

---

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)