KelvinJin / AnimatedCollectionViewLayout

A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.
MIT License
4.7k stars 347 forks source link

Card layout #26

Open ghimireprashant opened 7 years ago

ghimireprashant commented 7 years ago

is it possible to make card layout size smaller. i mean to display two cell in one screen?if its possible how can i achieve that ?

annjawn commented 6 years ago

facing the same issue, my requirement is to show 3 cells, one on each side and one in the center. I haven't been able to do that for the card layout. It works well if the cell width is equal to it's container width. Well, I was able to make it to show 3 cells just as I mentioned using LinearCardAttributesAnimator(minAlpha: 0.02, itemSpacing: 0.01, scaleRate: 0.7) but then infinite scrolling is not supported so the first and last cells are never centered / selected. Bummer. 🙁