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

# delegate

The search bar’s delegate object.

## Declaration

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

## Discussion

Discussion The delegate should conform to the UISearchBarDelegate protocol. Set this property to further modify the behavior. The default value is nil.

## See Also

### Handling search bar interactions

- [UISearchBarDelegate](uikit/uisearchbardelegate.md)
