0
目前,此动画每3秒重复一次。我希望在重复动画之间等待10秒。我怎样才能做到这一点?Swift 3 - 延迟重复动画
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
UIView.animate(withDuration: 7.5, delay: 20,
options: .repeat,
animations: {
self.imageAnimate.center.x += self.view.bounds.width * 2
},
completion: nil
)
}