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?
your give link project implemented:
first go to main.storyboard delete constraint of tableview top after set tableview y position = 0 and set top constraint of tableview.
your search bar view height set in viewcontroller.swift file.