Реализация панели поиска в collectionView Header - PullRequest
0 голосов
/ 21 марта 2020

Я внедряю searchBar в заголовок collectionView.

Я получаю исключение:

func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {

    let searchView: UICollectionReusableView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "SearchBarDispositivos", for: indexPath) 

    return searchView
}

Сообщение об ошибке: Редактор-заполнитель в исходном файле.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...