'Animating CollectionView cells like iOS Photos app Years/Months/Days picker?

I can't understand what Apple is using here in the iOS Photos collection view.

How do they transition the collection view when using the Years / Months / Days / All Photos segmented control?

Custom CollectionViewFlowLayout? Or custom transition between two CollectionViews (from "Years" to "Months" and back)?

iOS 13 Photo app



Solution 1:[1]

I solved my problem with using snapshots and animate them.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Metman