Hi Team,
The app is crashing on iOS 15.4.1 and iOS 15.3.1 Please check the below crash reason:- SIGABRT: could not dequeue a view of kind: UICollectionElementKindCell with identifier KPICollectionViewCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard
I have written the below code but am unable to understand what is wrong with this:-
guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: TableItemCollectionViewCell.identifier,
for: indexPath) as? TableItemCollectionViewCell
else {
return collectionView.emptyCell(at: indexPath)
}