I would like to know how to hide or not display the UISearchBar cross that appears in the textField fo the UISearchBar
UISearchBar
textField
I have
Swift 5
Just add a single line below
searchBar.searchTextField.clearButtonMode = .never