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

# searchBarBookmarkButtonClicked(_:)

Tells the delegate that the bookmark button was tapped.

```
optional func searchBarBookmarkButtonClicked(_ searchBar: UISearchBar)
```

## Parameters

`searchBar`

The search bar that was tapped.

## Discussion

There is no automatic bookmark support provided by the search bar. It’s the application’s responsibility to implement this method to perform some action if the bookmark button is tapped by the user.

## See Also

[`showsBookmarkButton`](/documentation/UIKit/UISearchBar/showsBookmarkButton)

A Boolean value indicating whether the bookmark button is displayed.



---

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)