title: SearchBar hides under NavigationBar
body: <p>I added a searchBar into a tableview. I also have a navigationbar and it should appear under it. It works fine until I tap into the searchbar. When I do so on devices with larger screen size (from iPhone 6) the searchbar hides under the navigationbar. It works as expected on an actual iPhone 5, 5s. This is how I initialize the searchBar: </p>
  
  <pre><code>    searchController.searchResultsUpdater = self as UISearchResultsUpdating
      searchController.dimsBackgroundDuringPresentation = false
      definesPresentationContext = true
      tableView.tableHeaderView = searchController.searchBar
      searchController.hidesNavigationBarDuringPresentation = false
      searchController.searchBar.tintColor = UIColor.black
  
  
      searchController.searchBar.scopeButtonTitles = ["Device", "Person", "OS version"]
      searchController.searchBar.delegate = self as UISearchBarDelegate
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Nau2k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nau2k.png" alt="Before I tap the searchBar"></a></p>
  
  <p><a href="https://i.stack.imgur.com/uIt0m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uIt0m.png" alt="After I tapped the searchBar"></a></p>
  
  <p>The searchBar should not hide because I need the segmented control on the navigationBar when I'm searching too. Do you have any idea how can I fix this problem?</p>
  
  <p><strong>Update:</strong> 
  After setting the extended edges the searchBar looks like this:
  <a href="https://i.stack.imgur.com/VwVv4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VwVv4.png" alt="The navigationbar color changed"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9Ye01.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Ye01.png" alt="When I tap the searchbar"></a></p>