Customizing Search Bar Color

searchBar.backgroundColor = UIColor.green
Pic 1
searchBar.barTintColor = UIColor.green
Pic 2
searchBar.setTextFieldColor(UIColor.green)
Pic 3
searchBar.tintColor = UIColor.green
Pic 4
Pic 5
Pic 6

--

--

Senior iOS Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store