You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saved the heights of cells in data models and its working perfectly. When inserting a new cell, heights of visible cells are changed to next model. Again when the cells are scrolled out of view, and reenter then the are updated correctly. However default UICollectionViewFlowLayout has no issues.
The text was updated successfully, but these errors were encountered:
Hi, I have the same problem. When I reload a section, cells data are updated, sizeForItem is called and returns the right height but the cell is not updated until I scroll.
I tried to call invalidateLayout(), prepare(), setNeedsLayout() on the cell, but nothing works.
The only way it could work is to create a new BouncyLayout instance and set the collectionView layout again. But it is not a good solution, I don't want to set it each time I reload.
I saved the heights of cells in data models and its working perfectly. When inserting a new cell, heights of visible cells are changed to next model. Again when the cells are scrolled out of view, and reenter then the are updated correctly. However default UICollectionViewFlowLayout has no issues.
The text was updated successfully, but these errors were encountered: