---
title: "searchBarBookmarkButtonClicked(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uisearchbardelegate/searchbarbookmarkbuttonclicked(_:)"
---

# searchBarBookmarkButtonClicked(_:)

Tells the delegate that the bookmark button was tapped.

## Declaration

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

## Parameters

- `searchBar`: The search bar that was tapped.

## Discussion

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

### Related Documentation

- [showsBookmarkButton](uikit/uisearchbar/showsbookmarkbutton.md)

### Responding to clicks in search controls

- [searchBarCancelButtonClicked(_:)](uikit/uisearchbardelegate/searchbarcancelbuttonclicked(_:).md)
- [searchBarSearchButtonClicked(_:)](uikit/uisearchbardelegate/searchbarsearchbuttonclicked(_:).md)
- [searchBarResultsListButtonClicked(_:)](uikit/uisearchbardelegate/searchbarresultslistbuttonclicked(_:).md)
