I am using UISearchController with UITableView, and using same table view on my base view controller to display the search results (doing with not specifying a seperate search results controller as searchController = UISearchController(searchResultsController: nil)
).
However, despite setting searchResultsController as nil, an empty transparent _UISearchControllerView
is still being presenting on top of my view controller when search is active.
Is there a way to prevent this and keep my view controller on the top of the view controller hiearchy on search?
Thanks.
You can remove that by setting the dimsBackgroundDuringPresentation
property of search controller to false
searchController.dimsBackgroundDuringPresentation = false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With