-
Notifications
You must be signed in to change notification settings - Fork 514
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
Fixes AnimatedImageView designated inilializer not work #512
Fixes AnimatedImageView designated inilializer not work #512
Conversation
Please add a test. |
@@ -61,6 +61,31 @@ - (void)commonInit:(PINCachedAnimatedImage *)animatedImage | |||
{ | |||
_animatedImage = animatedImage; | |||
_animatedImageRunLoopMode = NSRunLoopCommonModes; | |||
|
|||
[self initializeAnimatedImage:animatedImage]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a nil check here and make mark initializeAnimatedImage:
as taking a non null animatedImage?
Looks like the right fix to me! @DreamingInBinary do you mind testing to make sure this addresses your issue? |
Added test. |
Thanks for adding a test! |
Mind adding an entry to CHANGELOG.md for this one? |
Changelog added, I'll add changelog for all my PRs. :) |
🚫 CI failed with log |
Mind rebasing against master? I think I fixed a flakey test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
Fixes #497 .