I ran into a lot of problems with iOS 11 and displayed UISearchController
it by presenting it in the navigation bar (as described here , for example, from Apple tutorials)
@IBAction func searchAction(sender: UIBarButtonItem) {
searchController = UISearchController(searchResultsController: nil)
self.searchController.searchBar.delegate = self
presentViewController(searchController, animated: true, completion: nil)
}
It hides the application UINavigationBar
and displays UISearchController
with a search bar.
Problem 1 .. On iOS 11, it causes the search bar to match the status the first time it appears (it doesn't intersect after retrying).
UISearchController
submitted for the first time. There is no space between the status bar and the search bar.
UISearchController
presented again, UINavigationBar
more, and the search bar is the lower status bar.
Problem 2 On iPhone X, it does not cover all the space when presented

, . , iOS 11 , . ? UISearchController
iPhone X?