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

cancelInteractiveMovement() seems broken #6

Open
halst opened this issue Nov 14, 2015 · 1 comment
Open

cancelInteractiveMovement() seems broken #6

halst opened this issue Nov 14, 2015 · 1 comment

Comments

@halst
Copy link

halst commented Nov 14, 2015

Cells should return to original positions, but some are missing or inconsistent with model. This seems to be on Apple's end; can you confirm?
To reproduce: call cancelInteractiveMovement() on gesture .Ended instead of endInteractiveMovement(). Wrapping in performBatchUpdates w/ reload in completion almost fixes, but not quite always.

@github-user32
Copy link

I've seen similar things with cancelInteractiveMovement() too on iOS 9.2. My workaround at the moment is to call collectionView.reloadItemsAtIndexPaths(collectionView.indexPathsForVisibleItems()) immediately afterwards which sometimes causes a slightly ugly re-shuffle, but at least the resulting cells reflect the model accurately. Be interested to hear if a better solution is known.

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