Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated icon supports (like Facebook) #6

Open
yannickl opened this issue Nov 22, 2016 · 3 comments
Open

Animated icon supports (like Facebook) #6

yannickl opened this issue Nov 22, 2016 · 3 comments

Comments

@yannickl
Copy link
Owner

yannickl commented Nov 22, 2016

reactioniconanimation

Possible solutions:

  • UIImageView. animationImages property
  • using external library (like Keyframes)
  • using animated CALayer
@fayme
Copy link

fayme commented Jul 10, 2017

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
Copy link

have you supported this feature?

@baronha
Copy link

baronha commented Mar 27, 2021

How to use ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants