Contents

searchBar(_:textDidChange:)

Tells the delegate that the user changed the search text.

Declaration

optional func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String)

Parameters

  • searchBar:

    The search bar that is being edited.

  • searchText:

    The current text in the search text field.

Discussion

This method is also invoked when text is cleared from the search text field.

See Also

Managing the search text