When I drop a UISearchBar into my view inside Interface Builder, and change its style to Black Opaque, the cancel button stays unfittingly blue / gray and doesn\'t become bl
for iOS 10:
UISearchBar.appearance().tintColor = UIColor.red //cancel button color UISearchBar.appearance().barTintColor = UIColor.blue //background button color