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

# searchResultKeyPath

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

## Declaration

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

## Discussion

Discussion The search view controller uses the key path to find the textual description of each object in searchResults. The default value of this property is “description”.

## See Also

### Displaying Search Results

- [searchResults](notificationcenter/ncwidgetsearchviewcontroller/searchresults.md)
