I know this is late, but you need to call collectionView.layoutIfNedded() and this will prevent future unneeded animations.
collectionView.layoutIfNedded()