ios 13 – Custom SearchBar with UISearchBar _searchField not working

The SDK now provides UISearchBar.searchTextField so you can simply replace your private API implementation with the public API.

searchBar.searchTextField.backgroundColor = [UIColor blueColor];

Leave a Comment