sguruapp@gmail.com
facebook vk instagram Телеграм youtube
Назад

Swift Animatin. Example - Swift 5

let guruRotateAnimation = CABasicAnimation(keyPath: "transform.rotation")
guruRotateAnimation.fromValue = 0.0
guruRotateAnimation.toValue = CGFloat(Double.pi * 2.0)
guruRotateAnimation.duration = 1
ballImage.layer.add(guruRotateAnimation, forKey: nil)
Full code read more
YouTube channel
GURU IS YOUR BEST SOLUTION!