Open yannickl opened 7 years ago
under Components swift file added CAKeyFrameAnimation to make it animate:
return CALayer().build {
let animation = CAKeyframeAnimation(keyPath: "contents")
animation.calculationMode = kCAAnimationDiscrete
animation.duration = 3.0
animation.repeatCount = .greatestFiniteMagnitude
animation.autoreverses = false
animation.values = imageArray.map {$0.cgImage!}
animation.isRemovedOnCompletion = false
animation.fillMode = kCAFillModeForwards
animation.beginTime = 0.0
$0.add(animation, forKey: "contents")
}
have you supported this feature?
How to use ?
Possible solutions:
UIImageView. animationImages
propertyCALayer