Anyway, that part was resolved after I switched to 4.2.
However, I am still getting an error. ( I downloaded your code and trying to run now. Issue still persists)
Conformance of subclass of a generic class 'UsersSearchController' to @objc protocol 'UICollectionViewDelegateFlowLayout' cannot be in an extension
extension UsersSearchController: UICollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return .init(width: view.frame.width, height: 80)
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
return 0
}
}