UICollectionView disables scrolling by default when there are not enough cells in the view. When this happens, I need him to return to the position when he was pulled out. I know of a hack where I can populate a UICollectionView with empty tables to enable scrolling, but I was hoping there would be a slightly more fluid example:
I do not want the view to scroll, but instead automatically return to its position. This is due to the effect that I performed below, as shown below.
https://youtu.be/r75xB9-Mb4g
Is there a way to achieve this simply when there are not enough cells in the UICollectionView, scrolling is disabled.
source share