solvable.
There is no animation function or anything like that, since changing the frames of the collection view elements inside your own custom stream (stream) simply cannot be animated.
The solution to this problem is to write an algorithm that calculates all the corresponding frames, which the layoutAttributesForElementsInRect: method ensures that setting the frame of an element will respectfully set another frame element, compensates for the added size or reduced size.
source share