Change UIView constraints in chained animations
问题 I'm trying to create a chained animation of a UIButton with a delay between the two animations: let firstAnimation: TimeInterval = 0.3 let secondAnimation: TimeInterval = 0.35 let delay: TimeInterval = 2.0 let animationDuration: TimeInterval = firstAnimation + secondAnimation + delay UIView.animateKeyframes(withDuration: animationDuration, delay: 0, options: [], animations: { UIView.addKeyframe(withRelativeStartTime: 0, relativeDuration: firstAnimation / animationDuration, animations: { self