Example: I don't see any animation. Why?
UIView.animate(withDuration: 1, delay: 0, options: [.repeat, .autoreverse], animations: {
self.buttonTrial.transform = CGAffineTransform(scaleX: 1.2, y: 1.2)
}, completion: { completion in
self.buttonTrial.transform = .identity
})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.