Contents

UISearchBarDelegate

A collection of optional methods that you implement to make a search bar control functional.

Declaration

@MainActor protocol UISearchBarDelegate : UIBarPositioningDelegate

Overview

A UISearchBar object provides the user interface for a search field on a bar, but it’s the application’s responsibility to implement the actions when buttons are tapped. At a minimum, the delegate needs to perform the actual search when text is entered in the text field.

Topics

Managing the search text

Responding to clicks in search controls

Responding to scope button changes

Instance Methods

See Also

Handling search bar interactions