title: How do you dismiss a UISearchController ? (iOS 8 and follow)
body: <p>This must be trivial, but I can't find how you're supposed to dismiss a UISearchController programmatically?</p>
  
  <p>Note that it's the new UISearchController (introduced in 2014 with iOS 8), not the UISearchDisplayController.</p>
  
  <p>So far here's what I've got</p>
  
  <pre><code>// Dismiss the search tableview
  searchController.dismissViewControllerAnimated()
  // Clear the Search bar text
  searchController.active = false
  </code></pre>
  
  <p>But I still have the cancel button and can't get rid of it.</p>