I was informed by an Apple engineer that you should provide a search bar frame. If you print the frame of the search bar, you will notice that the height is zero. So this is probably an error in Apple code.
searchController.searchBar = CGRectMake(0.0, 0.0, 320.0, 44.0)
Edit:
The documentation states what you should pass to the view controller, which should display the results. To display this in the same view controller you are in, go to zero.
var searchController = UISearchController(searchResultsController: nil)
source share