Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Possible solution for updating UICollectionViewCells with animation #163

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

spekke
Copy link

@spekke spekke commented Sep 20, 2017

Hi,
The current solution for updating an UICollectionViewCell using reloadItems with BatchUpdates will dequeue a new cell from UICollectionView and apply the generated views from LayoutArrangement on that cell. This is okay if we are reloading the cell with completely new data. But in my case I just want to update the size of the content and the result is a bit jumpy. :/

I would like the possibility to compute the LayoutArrangements but give back the responsibility to the caller to update the views. In my case I would invalidate the cell context on the UICollectionViewLayout and apply a LayoutKit animation on the cell to update the content.

I know there are no tests included yet. I would like to discuss the solution before spending more time on it.

Thanks

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

Successfully merging this pull request may close these issues.

None yet

1 participant