InfiniteLayout
InfiniteLayout copied to clipboard
Different cell returned based on centered indexPath return on infiniteCollectionView(_ infiniteCollectionView: InfiniteCollectionView, didChangeCenteredIndexPath centeredIndexPath: IndexPath?
i want to edit the cell contents once they are scroll to the center but when I dequeue cell from the given centeredIndexPath from delegate func
func infiniteCollectionView(_ infiniteCollectionView: InfiniteCollectionView, didChangeCenteredIndexPath centeredIndexPath: IndexPath?)
i will get the wrong cell.
How can I get the correct centered cell from the given centeredIndexPath in the delegate? Thanks
Hi, sorry i'm late
Are you using
self.infiniteCollectionView.indexPath(from: indexPath) ?