I am using this library: https://github.com/xmartlabs/XLPagerTabStrip
My problem is that I can't resolve an issue with adding a UISearchController for one of ButtonBarPagerTabStripViewController
child viewController - UITableViewController
.
The searchBar does not appear when trying to add it under iOS 11+ like this:
navigationItem.searchController = searchController
navigationItem.hidesSearchBarWhenScrolling = true
and when trying to add UISearchBar
to tableView
as this:
tableView.tableHeaderView = searchController.searchBar
then after tapping into the search field the whole UISearchBar
disappears.
Do you know any proper way how to implement UISearchController
in a UITableViewController
with ButtonBarPagerTabStripViewController
as a one of childs?