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

# delegate

The search view controller’s delegate or `nil` if the receiver doesn’t have a delegate.

```
@IBOutlet weak var delegate: (any NCWidgetSearchViewDelegate)? { get set }
```

## Discussion

A search view controller’s delegate performs a search on the input term and updates the controller’s [`searchResults`](/documentation/NotificationCenter/NCWidgetSearchViewController/searchResults) property with the results.

---

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)