InfiniteLayout icon indicating copy to clipboard operation
InfiniteLayout copied to clipboard

Different cell returned based on centered indexPath return on infiniteCollectionView(_ infiniteCollectionView: InfiniteCollectionView, didChangeCenteredIndexPath centeredIndexPath: IndexPath?

Open jijijrey opened this issue 6 years ago • 1 comments

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

jijijrey avatar Jul 05 '19 03:07 jijijrey

Hi, sorry i'm late

Are you using self.infiniteCollectionView.indexPath(from: indexPath) ?

arnauddorgans avatar Jul 10 '19 08:07 arnauddorgans