Search string break when searching

I don't know why, but I get a break between the search bar and the results, as if the area buttons were showing, only they are not.

In the image, the highlighted view is UISearchBarContainerView and the border view is UITableViewWrapperView


Here's the code to create the search bar:

// set up results controller
let resultsController = SearchResultsController()
searchController = UISearchController(searchResultsController: resultsController)

// set up search bar in article table
let searchBar = searchController.searchBar
searchBar.placeholder = "Procurar Artigo"

articleTable.tableHeaderView = searchBar
searchController.searchResultsUpdater = resultsController



source to share

All Articles