You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[YES] Searched existing issues for ensure not duplicated.
Description
When it's called just after applying deleted section
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
// it crashes when it's called just after applying deleted section
let sectionIdentifier1 = self.dataSource.snapshot().sectionIdentifiers[section]
// it would be nice to have sth like this as data source is still correct when snapshot actually isn't
let sectionIdentifier2 = self.dataSource.sectionIdentifier(for: section)
// I need to know which section is here
}
then it crashes or it's not possible to get section identifier in UICollectionViewDelegate methods.
The text was updated successfully, but these errors were encountered:
Checklist
Description
When it's called just after applying deleted section
then it crashes or it's not possible to get section identifier in
UICollectionViewDelegate
methods.The text was updated successfully, but these errors were encountered: