ianb821 / IBActionSheet

Customizable iOS 7 style UIActionSheet
MIT License
307 stars 65 forks source link

fix iOS7 animation spring damping value #14

Closed devxoul closed 10 years ago

ianb821 commented 10 years ago

According to Apple's documentation:

The damping ratio for the spring animation as it approaches its quiescent state. To smoothly decelerate the animation without oscillation, use a value of 1. Employ a damping ratio closer to zero to increase oscillation.

So the damping ration should be a value between 1 and 0. The value set now is what I believe to be the ideal value. If you want to change it in your personal project feel free to tweak it to meet your needs.