I am using UISearchController with a UITableView and using the same table view on my base view controller to display search results (by doing this without specifying a separate search results controller as searchController = UISearchController(searchResultsController: nil)).
However, even though the searchResultsController parameter is zero, an empty transparent one _UISearchControllerViewis still displayed on top of my view controller when the search is active.
Is there a way to prevent this and keep my view controller at the top of the hiearchy view controller when searching?
Thank.
source
share