title: Show search bar in navigation bar without scrolling on iOS 11
body: <p>I’m attaching a UISearchController to the <code>navigationItem.searchController</code> property of a UITableViewController on iOS 11. This works fine: I can use the nice iOS 11-style search bar.</p>
  
  <p>However, I’d like to make the search bar visible on launch. By default, the user has to scroll up in the table view to see the search bar. Does anyone know how is this is possible?</p>
  
  <p><a href="https://i.stack.imgur.com/6I4uK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6I4uKm.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/6ApdI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6ApdIm.png" alt="enter image description here"></a></p>
  
  <p><em>Left: default situation after launch. Right: search bar made visible (by scrolling up). I’d like to have the search bar visible after launch, as in the right screenshot.</em></p>
  
  <p>I already found that the search bar can be made visible by setting the property <code>hidesSearchBarWhenScrolling</code> of my navigation item to false. However, this causes the search bar to always be visible — even when scrolling down —, which is not what I want.</p>