I got a navigation bar containing some UIBarButtonItem
buttons and a UISearchBar
hooked up like this
var searchController: UISearch
I'm now using this workaround as I want most of my users have the navigation bar visible while search is active (for several app-ux-specific reasons).
var isIosVersionWithNavigationBarBug: Bool {
if #available(iOS 13.2, *) {
return false
}
if #available(iOS 13.0, *) {
return true
}
return false
}
In my search controller I use it like this
mySearchController.hidesNavigationBarDuringPresentation = isIosVersionWithNavigationBarBug
So if iOS 13.2 is being released and the user updates to it, the workaround is not being applied anymore.