ВК
Size: a a a
ВК
ВК
SS
ВК
ВК
SS
SS
SS
func createAnimation() {
buttonAnimator = UIViewPropertyAnimator.runningPropertyAnimator(withDuration: 4, delay: 0, options: .curveLinear, animations: {
UIView.animateKeyframes(withDuration: 4, delay: 0, animations: {
UIView.addKeyframe(withRelativeStartTime: 0, relativeDuration: 1.0/3.0) {
self.circlePlayImage.transform = .init(rotationAngle: .pi * 2 * 1/3)
}
UIView.addKeyframe(withRelativeStartTime: 1.0/3.0, relativeDuration: 1.0/3.0) {
self.circlePlayImage.transform = .init(rotationAngle: .pi * 2 * 2/3)
}
UIView.addKeyframe(withRelativeStartTime: 2.0/3.0, relativeDuration: 1.0/3.0) {
self.circlePlayImage.transform = .identity
}
})
}, completion: { [
weak
self]
_
in
self?.createAnimation()
})
}
ВК
SS
ВК
SS
SS
ВК
SS
SS
ВК
[
G