SDAnimatedImageView, 判断前后image相同时会return,若外部利用runtime覆盖UIImageView.setImage,SDAnimatedImageView这个行为会阻断调用栈#3874
Conversation
…tImage,SDAnimatedImageView这个行为会阻断调用栈,这里应该保持UIImageView的默认行为,调用super.image = image;
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
You can do the test by yourself ? Maybe I can not test this behavior changes locally. I remember this code is referenced from YYAnimatedImageView: https://github.com/ibireme/YYImage/blob/42ba209608cb332887a33ebcae1bde50c52b151d/YYImage/YYAnimatedImageView.m#L278
|
① 我测试iOS 13 - iOS 26,SDAnimatedImageView设置相同的SDAnimatedImage,没有使当前动画停止。 |
|
OK. You can integrate the changes to your App and have a check. Currently just merge in. |
SDAnimatedImageView, 判断前后image相同时会return,若外部利用runtime覆盖UIImageView.setImage,SDAnimatedImageView这个行为会阻断调用栈,这里应该保持UIImageView的默认行为,调用super.image = image;
Summary by CodeRabbit