animate(springDuration:bounce:initialSpringVelocity:delay:options:animations:completion:)
Animates changes to one or more views using a spring animation with the specified duration, bounce, initial velocity, delay, options, and completion handler.
Declaration
@MainActor @preconcurrency class func animate(springDuration duration: TimeInterval = 0.5, bounce: CGFloat = 0.0, initialSpringVelocity: CGFloat = 0.0, delay: TimeInterval = 0.0, options: UIView.AnimationOptions = [], animations: () -> Void, completion: ((Bool) -> Void)? = nil)Discussion
See Also
Animating views
animate(_:changes:completion:)animate(withDuration:delay:options:animations:completion:)animate(withDuration:animations:completion:)animate(withDuration:animations:)transition(with:duration:options:animations:completion:)transition(from:to:duration:options:completion:)animateKeyframes(withDuration:delay:options:animations:completion:)addKeyframe(withRelativeStartTime:relativeDuration:animations:)perform(_:on:options:animations:completion:)animate(withDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:)performWithoutAnimation(_:)modifyAnimations(withRepeatCount:autoreverses:animations:)