---
title: delegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchcontroller/delegate
---

# delegate

The search controller’s delegate.

## Declaration

```swift
weak var delegate: (any UISearchControllerDelegate)? { get set }
```

## Discussion

Discussion Use the delegate object to receive notifications when the search results controller is presented and dismissed. You might use these notifications to customize the search interface or perform related actions.

## See Also

### Responding to presentation and dismissal

- [UISearchControllerDelegate](uikit/uisearchcontrollerdelegate.md)
