iOS Swift - Animations
Identify the error in this Core Animation timing code:
let animation = CABasicAnimation(keyPath: "opacity") animation.duration = 1.0 animation.timingFunction = CAMediaTimingFunction(name: .easeIn) animation.fromValue = 1.0 animation.toValue = 0.0 view.layer.add(animation, forKey: "fade")
