I\'m trying to change the background color of input field of UISearchBar.It\'s the rounded view where you input text to search, the default color is white. I would like to c
Solution in Swift 3:
if let txfSearchField = searchController.searchBar.value(forKey: "_searchField") as? UITextField { txfSearchField.borderStyle = .none txfSearchField.backgroundColor = .lightGray }