Did you find solution for UISearchBar cancel button not to dimiss entire viewController having navigationItem.searchController assigned?
if viewController.navigationItem.searchController != nil {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
viewController.navigationItem.searchController = nil
}
Really I need to add 0.1 delay to make it work? Isn't it a little stupid hacky soluton.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: