When no text is entered, the search results list (searchResultsTableView) will be automatically hidden.
When the result list is hidden, you can put any control under the searchbar to display it. Hot words and the like are usually a small collectionView.
Moreover, if any of the built-in effects of the system's searchBar conflict with your needs, you can also change it to textField, which will be more customizable, but many event responses need to be written by yourself.
When no text is entered, the search results list (searchResultsTableView) will be automatically hidden.
When the result list is hidden, you can put any control under the searchbar to display it. Hot words and the like are usually a small collectionView.
Moreover, if any of the built-in effects of the system's searchBar conflict with your needs, you can also change it to textField, which will be more customizable, but many event responses need to be written by yourself.