I added a UISearchController to the UICollectionViewController. But when I type in searchBar, it rejects the keyboard. How can I use the UISearchController in a UICollectionViewController with the UISearchResultsUpdating protocol.
I tried to filter the search by UICollectionView elements. When I call self.collectionview.reloadData (), on every keystroke, the keyboard is rejected.
source share