This repository has been archived by the owner on Jan 5, 2020. It is now read-only.
Animating Background Color Crashing #24
Comments
That's great if you can open a PR 👍 |
Hi. This is still not fixed. I get a crash when trying to animate view's background color. I have managed changing this code in DKKeyFrameAnimation:
and
It could be possible to deploy a new version with a fix? Thank you very much in advance. |
@raulperez just released 2.0.1, but i don't know whether this could fix your bug or not. |
@draveness it doesn't. It continues crashing. If I apply the patch with the code I post over these comments it works again. But thank your for the help. Please, let me know when you have solved this issue. I will upgrade to the newest release again. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When you use the method makeBackground with a basic default monotone colors that are created using the UIColor convenience methods, like UIColor.black, UIColor.white, UIColor.gray, etc., the app crashes because the way it finds the color components. In Swift 3 with iOS 10 these methods return a color with only two components, a darkness value and an alpha value. This does not cause an issue with colors like UIColor.red or UIColor(red: 0.0, blue: 0.0, green: 0.0, alpha: 1.0) however. I will be able to make a fix if you'd like.
The text was updated successfully, but these errors were encountered: