Closed davidolesch closed 10 years ago
Use
colorAnim.toValue = (__bridge id)([UIColor redColor].CGColor);
Correct. We currently support CGColorRef natively, but UIColor support would be a nice enhancement. Let's use this issue to track.
We now support UIColor and NSColor.
Thanks Kimon. I pulled in the new pod and confirmed that UIColor works.
Excellent. Thanks for confirming.
Trying to animate color is causing crashes for me. I tried both kPOPViewBackgroundColor and kPOPLayerBackgroundColor.
Animating with the kPOPViewBackgroundColor property crashes the app due to uncaught exception 'Unsuported value', reason: 'Animating UICachedDeviceRGBColor values is not supported'.
Animating with the kPOPLayerBackgroundColor property crashes the app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unhandled type 9'.
I'm doing really simple animations like