I have a UISearchController added to my view, but I would like to change its height. This is what I have:
func initSearch() { // Create the search controller and make it perform the results updating. searchController = UISearchController(searchResultsController: nil) searchController.delegate = self searchController.searchBar.delegate = self searchController.hidesNavigationBarDuringPresentation = true searchController.dimsBackgroundDuringPresentation = true searchController.searchBar.tintColor = UIColor.whiteColor() searchController.searchBar.barStyle = .Black searchController.searchBar.scopeButtonTitles = [ "Any", "Title", "Content", "Keywords" ] self.definesPresentationContext = true } @IBAction func searchTapped(sender: AnyObject) { // Present the view controller. presentViewController(searchController, animated: true, completion: nil) }
Below is a screenshot of how it looks. I would like to trim some space from a height. How can I do that?

source share