title: UISearchBar black lines/border
body: <p>I'm getting some odd black lines above and below a UISearchBar and I'm not quite sure how to get rid of them. Setting the style of the UISearchBar to minimal solves that problem, but then it doesn't have the background colour I'd like.</p>
  
  <p>Any ideas what's causing this? I've looked over a few similar questions, but none seem to do what I want. Many thanks in advance!</p>
  
  <p><a href="https://i.stack.imgur.com/gW5D3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gW5D3.png" alt="Search bar showing a black border at the top and bottom"></a></p>