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

Alignment bug on simultaneous insertion and refresh #71

Open
ekazaev opened this issue Mar 27, 2020 · 0 comments
Open

Alignment bug on simultaneous insertion and refresh #71

ekazaev opened this issue Mar 27, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ekazaev
Copy link

ekazaev commented Mar 27, 2020

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

Screenshots
https://www.dropbox.com/s/rzfa5g8qbiamlcm/Missalignmets.mov?dl=0
Screenshot 2020-03-27 at 00 58 11
Smartphone (please complete the following information):

  • Device/Simulator: iPhone 11/XR (Simulator)
  • OS: iOS12/13

Additional context
You did a fantastic job.

@bryankeller bryankeller self-assigned this Jul 24, 2020
@bryankeller bryankeller added the bug Something isn't working label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants