/UIViewPropertyAnimatorEasing

easing extension for UIViewPropertyAnimator

Primary LanguageSwiftGNU General Public License v3.0GPL-3.0

UIViewPropertyAnimatorEasing

easing extension for UIViewPropertyAnimator

How to use

myAnimator = UIViewPropertyAnimator.easeInBack
myAnimator.duration = 1.5
myAnimator.addAnimations {
    self.myView.center.y += 300
}
myAnimator.startAnimation()

parameters from https://github.com/ai/easings.net