title: iOS 13 UIBarButtonItem not clickable and overlapping UINavigationBars when using UISearchController
body: <p>I got a navigation bar containing some <code>UIBarButtonItem</code> buttons and a <code>UISearchBar</code> hooked up like this</p>
  
  <pre><code>var searchController: UISearchController!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      title = "Test"
  
      tableView.delegate = self
      tableView.dataSource = self
  
      searchController = UISearchController(searchResultsController: nil)
      navigationItem.searchController = searchController
  
      // This leads to the bug
      searchController.hidesNavigationBarDuringPresentation = false
  
      navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .action, target: self, action: #selector(leftTapped))
      navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .action, target: self, action: #selector(rightTapped))
  }
  </code></pre>
  
  <p>Scenario: I tap into the search bar and tap cancel afterwards.</p>
  
  <ul>
  <li><p>Issue 1: The <strong>bar buttons are not reacting</strong> to touch except when I touch the outer most pixels of the screen (only possible with the simulator and mouse clicks).</p></li>
  <li><p>Issue 2: The <strong>navigation items are overlapping</strong> when I push another view controller.</p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/RqMbO.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/RqMbO.gif" alt="enter image description here"></a></p>
  
  <p>When I use <code>hidesNavigationBarDuringPresentation = true</code> it's working like expected.</p>
  
  <hr>
  
  <p>The issue appears on notched and non-notched iPhones iOS 13.0 and 13.1 using Xcode 11.0 and 11.1.</p>
  
  <p>Here's the whole test project:
  <a href="https://github.com/fl034/HidesNavigationBarDuringPresentationTest" rel="noreferrer">https://github.com/fl034/HidesNavigationBarDuringPresentationTest</a></p>
  
  <hr>
  
  <p>I've filed a radar (and you should too), but maybe some of you guys have already a workaround for it?</p>
  
  <hr>
  
  <p><strong>Update 1</strong>: Bug is still there in iOS 13.1.1</p>
  
  <hr>
  
  <p><strong>Update 2</strong>: Bug is fixed in iOS 13.2 beta (thanks @Ben Gomm)</p>