When setting status bar to hidden
override var prefersStatusBarHidden: Bool {
return true
}
and initialize a plain searchController
using
let searchController = UISearchController(searchResultsController: nil)
navigationItem.searchController = searchController
It appears normal if unedited, however if you click into the search bar, the navigation title will hide and there is little padding between the search bar and top edge, which is very visually broken.
Solution is appreciated.
let searchController = UISearchController(searchResultsController: nil)
is all I had. I've included this line in the question. – Fundamentalism