Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jijijrey opened this issue Jul 5, 2019 · 1 comment

Comments

@jijijrey
Copy link

jijijrey commented Jul 5, 2019

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 jijijrey changed the title Different centered indexPath return on delegate Different cell returned based on centered indexPath return on infiniteCollectionView(_ infiniteCollectionView: InfiniteCollectionView, didChangeCenteredIndexPath centeredIndexPath: IndexPath? Jul 5, 2019
@arnauddorgans
Copy link
Owner

Hi, sorry i'm late

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants