kishikawakatsumi / IBPCollectionViewCompositionalLayout

Backport of UICollectionViewCompositionalLayout to earlier iOS 12
MIT License
1.55k stars 148 forks source link

[Crash in Swift] When 'debugPrint(visibleItems.first?.indexPath)' in the block of visibleItemsInvalidationHandler #154

Open SunChJ opened 3 years ago

SunChJ commented 3 years ago

image

SunChJ commented 3 years ago

Error logs: Swift/ArrayBuffer.swift:510: Precondition failed: NSArray element failed to match the Swift Array Element type Expected IBPNSCollectionLayoutVisibleItem but found NSCollectionLayoutVisibleItem

Narayane commented 3 years ago

I've the same error...

IniongunIsaac commented 2 years ago

@SunChJ @Narayane So how did you solve the problem? I'm experiencing the same problem too

toanbv-fabbi commented 1 year ago

@kishikawakatsumi Do you have any idea to fix?