I am using storyboards to make a search bar using UISearchBar. I am trying to make it look like this:
However this is what I end up getting:
I've added code to change the bar's dimensions and set a minimum font size for the text (for auto layout) and add corner radius. The only code that works is the corner radius unfortunately.
searchBarOutlet.layer.cornerRadius = 10
searchBarOutlet.layer.borderWidth = 304
searchBarOutlet.clipsToBounds = true