let searchTab = UISearchTab { tab in
UINavigationController(rootViewController: SearchViewController())
}
searchTab.automaticallyActivatesSearch = true
class SearchViewController: UIViewController {
private let searchController = UISearchController(searchResultsController: UIViewController())
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.searchController = searchController
}
}
With this setup when I launch the app and tap the search tab, the keyboard will not appear. Switching tabs and tapping search again works from then on. Am I doing something wrong here?
Video here: https://mastodon.social/@nicoreese/114983627125286299