Sets the timing function of the animation for a given view. If not used, Motion will use determine the timing function based on whether or not the view is entering or exiting the screen.
- Parameters:
- timingFunction: timing function of the animation
Sets the view's timing function for the animation.
- Parameter _ timingFunction: A CAMediaTimingFunction.
(iOS 9+) Use spring animation with custom stiffness & damping. The duration will be automatically calculated. Will be ignored if arc, timingFunction, or duration is set.
- Parameters:
- stiffness: stiffness of the spring
- damping: damping of the spring
Available in iOS 9+, animates a view using the spring API,