iOS 13 UISearchBar appearance and behaviour : <p>I have my <code>UISearchBar</code> set up as follows:</p>

<pre><code>searchController.searchResultsUpdater = self
searchController.obscuresBackgroundDuringPresentation = false // Allow user to tap on results
searchController.searchBar.placeholder = "Search patients" // Placeholder
searchController.searchBar.barStyle = .blackOpaque
searchController.searchBar.tintColor = colors.text // Cancel button tint

navigationItem.searchController = searchController // Set the searchController
navigationItem.hidesSearchBarWhenScrolling = true // Auto-hide search when user scrolls
</code></pre>

<p>This is how it looks on iOS 12: <a href="https://i.stack.imgur.com/XH3Q7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XH3Q7.png" alt="iOS 12 appearance"></a>
vs iOS 13: <a href="https://i.stack.imgur.com/ElRbM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ElRbM.png" alt="enter image description here"></a>
What's changed in iOS 13? I've tried going through the different <code>barStyles</code>, and also setting <code>.isTranslucent</code> to false - no effect for either. Light/dark mode also don't change anything.</p>

<p>The other change is hiding the search bar - on iOS 12 if I scrolled upwards a little the search bar would hide (didn't matter if the table was populated or not). With iOS 13, once the search bar has appeared (ie the user has swiped down), it cannot be hidden again. Anyone know of a fix for this too?</p>
