---
title: "didPresentSearchController(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uisearchcontrollerdelegate/didpresentsearchcontroller(_:)"
---

# didPresentSearchController(_:)

Notifies the delegate when the system completes automatic presentation of the search controller.

## Declaration

```swift
optional func didPresentSearchController(_ searchController: UISearchController)
```

## Parameters

- `searchController`: The doc://com.apple.uikit/documentation/UIKit/UISearchController object to present.

## Discussion

Discussion The system only calls this method when it automatically presents the search controller. The system doesn’t call this method if you explicitly present the search controller.

## See Also

### Presenting and dismissing the search controller

- [didDismissSearchController(_:)](uikit/uisearchcontrollerdelegate/diddismisssearchcontroller(_:).md)
- [presentSearchController(_:)](uikit/uisearchcontrollerdelegate/presentsearchcontroller(_:).md)
- [willDismissSearchController(_:)](uikit/uisearchcontrollerdelegate/willdismisssearchcontroller(_:).md)
- [willPresentSearchController(_:)](uikit/uisearchcontrollerdelegate/willpresentsearchcontroller(_:).md)
