I have a UISearchController with a UITableViewController as a searchResultsController, the UISearchBar of this sear
In my case the searchBar was in the tableHeaderView and there was no NavigationBar on screen. But the SearchBar still animated upwards overlapping the status bar when becoming active. The solution to prevent this was to set:
searchController.hidesNavigationBarDuringPresentation = false
Which is weird because as I said the view controller was not using a navigation bar.