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
Describe the bug
An attempt to make two simultaneous changes in collection view causes UI glitches
To Reproduce
Add the next piece of code to the performBatchUpdates
let itemInfo1 = ItemInfo(
sizeMode: state.sizeMode,
text: "Test test test test test test",
color: state.color)
self?.dataSource.removeItem(atItemIndex: 3, inSectionAtIndex: 0)
self?.dataSource.insert(itemInfo1, atItemIndex: 3, inSectionAtIndex: 0)
self?.collectionView.reloadItems(at: [IndexPath(item: 3, section: 0)])
Run the project and insert an item
You will see the effect that is described in the video. Cells will start animation from the wrong position and finish it in the wrong place
Expected behavior
All the items will reorder and update according to their positions
Describe the bug
An attempt to make two simultaneous changes in collection view causes UI glitches
To Reproduce
Add the next piece of code to the
performBatchUpdates
Run the project and insert an item
You will see the effect that is described in the video. Cells will start animation from the wrong position and finish it in the wrong place
Expected behavior
All the items will reorder and update according to their positions
Screenshots

https://www.dropbox.com/s/rzfa5g8qbiamlcm/Missalignmets.mov?dl=0
Smartphone (please complete the following information):
Additional context
You did a fantastic job.
The text was updated successfully, but these errors were encountered: