I was creating my own custom UISearchBar and UISearchController, following this tutorial and I wanted to add my own background using searchBar.setBackgroundImage() but the problem is that the image doesn't span the status bar as well. So I get a white status bar that looks like this:
Anyone know how to fix this?