I have UICollectionViewone that animates its borders when the user lifts a finger from the screen. The collection view is enlarged or compressed depending on how much the user has scrolled. This works great if the user lifts his finger up while UICollectionViewstill, but if they click on the scroll list, unexpected results will appear unexpectedly.

As you can see, UICollectionViewCelldisappears before he has a chance, naturally scroll away.
I use AutoLayoutand therefore animate the limitations of calling the collection that is calling [self.view layoutIfNeeded];. I want to assume that the animation interferes with scrolling, judging by how the scroll bar moves, it seems UICollectionViewto be projected to its end contentOffset, animate the slide up.
I would like to know why this effect occurs? And any tips on how to fix this!
source
share