Reactions icon indicating copy to clipboard operation
Reactions copied to clipboard

Animated icon supports (like Facebook)

Open yannickl opened this issue 8 years ago • 3 comments

reactioniconanimation

Possible solutions:

  • UIImageView. animationImages property
  • using external library (like Keyframes)
  • using animated CALayer

yannickl avatar Nov 22 '16 14:11 yannickl

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

fayme avatar Jul 10 '17 06:07 fayme

have you supported this feature?

starfall-9000 avatar Aug 22 '19 04:08 starfall-9000

How to use ?

baronha avatar Mar 27 '21 09:03 baronha