UICollectionView not scrolling (jumping) when removing 2nd of 2 item

UICollectionView don’t animate when removing 2nd item of 2 total, just jumps after pre-last item disappear.

 

 

UICollectionView animates add/remove item fine in all other cases (works fine for deleting 3rd of 3, 4th of 4, 15th of 15 etc) excepting the situation when you try to remove 2nd of 2 item. Have no idea why, does anyone can help me to solve that? Please watch the short video. You can try the ready project as well.

 

 

***Custom FlowLayout is must have, no chance to remove it.

 

Video explanation

https://vimeo.com/390343515

 

Sample project on GitHub

https://github.com/mrbodich/Test-Collectionview

 

 

Thank you for any help

Powered by WPeMatico

You may also like...

Comments are closed.