Crash on iOS 15
General information
IGListKitversion: 4.0.0- iOS version(s): iOS 15
- CocoaPods/Carthage version:
- Xcode version: 13 beta 5
- Devices/Simulators affected:
- Reproducible in the demo project? (Yes/No):
- Related issues:
I'm trying to run my project on iOS 15 but i have a crash in IGListKit despite it works well on the previous iOS version, do you have any update to support iOS 15 changes? The error here:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'the view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath: does not match the element kind it is being used for. When asked for a view of element kind 'UICollectionElementKindSectionHeader' the data source dequeued a view registered for the element kind 'UICollectionElementKindSectionFooter'.'
Are you still getting this error or how did you fix it? @aly-simplehabit
Are you still getting this error or how did you fix it? @aly-simplehabit
@aguilarpgc I just registered the collectionViewCell with the Supplementary kind as below and works fine with me collectionView.register(UICollectionViewCell.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "identifier");
Thank you,
In my case I changed dequeueReusableCell: for dequeueReusableSupplementaryView: and it works for all UICollectionReusableView. Before iOS 15 was working fine
Thank you, In my case I changed
dequeueReusableCell:fordequeueReusableSupplementaryView:and it works for allUICollectionReusableView. Before iOS 15 was working fine
I had the same problem with iOS 15 and this solution solved my problem, thank you.