---
title: "searchDisplayControllerDidEndSearch(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uisearchdisplaydelegate/searchdisplaycontrollerdidendsearch(_:)"
---

# searchDisplayControllerDidEndSearch(_:)

Tells the delegate that the controller has finished searching.

## Declaration

```swift
optional func searchDisplayControllerDidEndSearch(_ controller: UISearchDisplayController)
```

## Parameters

- `controller`: The search display controller for which the receiver is the delegate.

## See Also

### Responding to search state change

- [searchDisplayControllerWillBeginSearch(_:)](uikit/uisearchdisplaydelegate/searchdisplaycontrollerwillbeginsearch(_:).md)
- [searchDisplayControllerDidBeginSearch(_:)](uikit/uisearchdisplaydelegate/searchdisplaycontrollerdidbeginsearch(_:).md)
- [searchDisplayControllerWillEndSearch(_:)](uikit/uisearchdisplaydelegate/searchdisplaycontrollerwillendsearch(_:).md)
