Instance Property


The search bar’s delegate object.


weak var delegate: UISearchBarDelegate? { get set }


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.