Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a minimum space between cells (enhancement) #22

Open
ruiwh0 opened this issue Nov 21, 2015 · 1 comment
Open

Implement a minimum space between cells (enhancement) #22

ruiwh0 opened this issue Nov 21, 2015 · 1 comment

Comments

@ruiwh0
Copy link

ruiwh0 commented Nov 21, 2015

Thank you for sharing this great job!

I wonder if it would be difficult to implement a minimum space between cells. Like the WildCard app does:

gif

@Svantulden
Copy link

You can kind of recreate this behavior by playing with the scrollResistanceFactor(or kScrollResistanceFactorDefault if you don't set the UICollectionView by code), the springBehaviour.length, springBehaviour.damping and springBehaviour.frequency.

Ive set resistance to 2000.0f, length to 1.0f, damping to 0.8f and frequency to 1.5f, to get a similar animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants