我弄乱了UIViewPropertyAnimator的文档,我希望找到一种方法来组合两个 UIViewPropertyAnimator。
像这样的东西:
let firstAnimator = UIViewPropertyAnimator(
duration: 2,
dampingRatio: 0.4,
animations: animation1
)
let secondAnimator = UIViewPropertyAnimator(
duration: 2,
dampingRatio: 0.4,
animations: animation2
)
firstAnimator.addAnimator(secondAnimator, withDelay: 1)
firstAnimator.startAnimation()
我缺少 UIViewPropertyAnimatorGroup 或类似的东西,这甚至存在吗?