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

# delegate

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

## Declaration

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

## Discussion

Discussion A search view controller’s delegate performs a search on the input term and updates the controller’s searchResults property with the results.

## See Also

### Enabling Search

- [NCWidgetSearchViewDelegate](notificationcenter/ncwidgetsearchviewdelegate.md)
