title: Cant change colour of searchBar and it jumps to top of view when selected
body: <p>I'm trying to attach a search bar to the top of my tableView and change its attributes (eg. colour, placeholder). However, I can't figure out how. I've tried embedding the <code>tableView</code> in another view but that didn't help. Any ideas?</p>
  
  <pre><code>func setupSearch(){
      search.delegate = self
      search.automaticallyShowsCancelButton = false
      search.searchBar.tintColor = UIColor.red
      search.searchBar.barTintColor = UIColor.red
      search.obscuresBackgroundDuringPresentation = false
      search.hidesNavigationBarDuringPresentation = false
      search.searchBar.placeholder = "Type something here to search"
      navigationItem.searchController = search
      tableView.tableHeaderView = search.searchBar
  }
  </code></pre>
  
  <p>This function is called in the viewDidLoad() and the tableView is added but not with the right colour or placeholder and jumps to the top of the screen when selected.
  Any help would be appreciated.</p>
  
  <p>This is the updated code for setupSearch (everything is working fine except the bar jumps to the top when selected):</p>
  
  <pre><code>func setupSearch(){
          search.delegate = self
          search.automaticallyShowsCancelButton = false
          search.searchBar.barTintColor = UIColor.red
          search.obscuresBackgroundDuringPresentation = false
          search.hidesNavigationBarDuringPresentation = false
          tableView.tableHeaderView = search.searchBar
      }
  </code></pre>
  
  <p>I declare the search bar at the start using:</p>
  
  <pre><code>let search = UISearchController(searchResultsController: nil)
  </code></pre>
  
  <p>Any ideas on how to stop the bar jumping to the top?</p>