<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchControllerDelegate/presentSearchController(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISearchControllerDelegate(im)presentSearchController:"
  },
  "title" : "presentSearchController(_:)"
}
-->

# presentSearchController(_:)

Presents the designated search controller.

```
optional func presentSearchController(_ searchController: UISearchController)
```

## Parameters

`searchController`

The [`UISearchController`](/documentation/UIKit/UISearchController) object to present.

## Discussion

The system calls this method when the user begins editing in the search controller, or you set the [`isActive`](/documentation/UIKit/UISearchController/isActive) property to <doc://com.apple.documentation/documentation/Swift/true>. The system performs a default presentation if you don’t implement this method or you present the controller yourself.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)