Skip to content

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

Open
@jijijrey

Description

@jijijrey

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

Activity

changed the title Different centered indexPath return on delegate Different cell returned based on centered indexPath return on infiniteCollectionView(_ infiniteCollectionView: InfiniteCollectionView, didChangeCenteredIndexPath centeredIndexPath: IndexPath? on Jul 5, 2019
arnauddorgans

arnauddorgans commented on Jul 10, 2019

@arnauddorgans
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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