Instance Property

delegate

The search bar’s delegate object.

Declaration

weak var delegate: UISearchBarDelegate? { get set }

Discussion

The delegate should conform to the UISearchBarDelegate protocol. Set this property to further modify the behavior. The default value is nil.

See Also

Handling Search Bar Interactions

protocol UISearchBarDelegate

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