Why do all curve options in UIViewAnimationOptions behave the same?

I'm writing an app to allow a user to change all the parameters in the animate function:


UIView.animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)


to evaluate the behaviors with different values.


It seems that the UIViewAnimationOptions curveEaseOut, curveLinear, curveEaseIn and CurveEaseInOut all animate the same. I've tried a number of recommendations found in searches with no success. I have the code on github. You can find it at https://github.com/miller-ms/ViewAnimator


I welcome anyone's insights on what may be going on here.

Answered by TheCD in 228002022

Have you tried using the animation method without spring-like behavior? UIView.animate(withDuration:delay:options:animations:completion:)

Accepted Answer

Have you tried using the animation method without spring-like behavior? UIView.animate(withDuration:delay:options:animations:completion:)

That's it. Thanks for the recommendation. It's a weakness of the documentation as they don't say which options apply to each call.

Why do all curve options in UIViewAnimationOptions behave the same?
 
 
Q