AEConicalGradient icon indicating copy to clipboard operation
AEConicalGradient copied to clipboard

Animatable Properties

Open joeblau opened this issue 9 years ago • 3 comments

The documentation in the code say that both colors and locations are supposed to be animatable, but I can't seem to get them to animate with a UIView animation or a CA Basic key path animator. If the docs are correct, how are you animating color transitions?

joeblau avatar Nov 20 '16 00:11 joeblau

Hi @joeblau, to be honest, I just copied those parts of documentation from CALayer, since I'm subclassing it I thought I still get to keep that behavior, but I never really tried to animate those properties. I thought it should work by default using CABasicAnimation with keyPath, so that doesn't work for you huh? Do you have any example I could look at?

tadija avatar Dec 06 '16 11:12 tadija

Ah okay. I don't anymore -- I switched to a linear gradient design which I can animate.

joeblau avatar Dec 06 '16 11:12 joeblau

Ok, then I'll just leave this issue open until something comes up... Thanks for reporting!

tadija avatar Dec 06 '16 11:12 tadija