yannickl / Reactions

Fully customizable Facebook reactions like control
http://cocoadocs.org/docsets/Reactions
MIT License
584 stars 90 forks source link

Animated icon supports (like Facebook) #6

Open yannickl opened 7 years ago

yannickl commented 7 years ago

reactioniconanimation

Possible solutions:

fayme commented 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") }

starfall-9000 commented 5 years ago

have you supported this feature?

baronha commented 3 years ago

How to use ?