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
Based on @Gines answer, here is the Swift version:
func searchBarTextDidBeginEditing(searchBar: UISearchBar) { guard let firstSubview = searchBar.subviews.first else { return } firstSubview.subviews.forEach { ($0 as? UITextField)?.clearButtonMode = .never } }