Skip to content

Commit

Permalink
When passing in nil to clear the animated image, remove anything sitt…
Browse files Browse the repository at this point in the history
…ing in super.image
  • Loading branch information
michafaw committed Jul 8, 2021
1 parent 97330ad commit 0b58936
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FLAnimatedImage/FLAnimatedImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ - (void)setAnimatedImage:(FLAnimatedImage *)animatedImage
} else {
// Stop animating before the animated image gets cleared out.
[self stopAnimating];
// Clear out the image.
super.image = nil;
}

_animatedImage = animatedImage;
Expand Down

0 comments on commit 0b58936

Please sign in to comment.