I'm having trouble removing that 1px border directly under the UISearchBar view. Now it doesn't look matched up with my done button view. I've tried:
searchBar.layer.borderWidth = 0;
searchBar.layer.shadowOpacity = 0;
But that doesn't seem to be working. Any ideas?
In order to overcome this in Xamarin Forms, you'll need to create a
CustomRenderer
to theSearchBar
class. Like this:Nevermind, I just did:
and it works!
For Swift version, tested on iOS9:
It would show like this: