You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I load gif with AnimatedImageView and set repeatCount.finite(count: 1) or .once, it plays two times!
Xcode11.1 + iOS 13.1.3
What
If i set repeatCount repeatCount.finite(count: 0), it did not play;
If i set repeatCount repeatCount.finite(count: 1) or .once, it played two times;
If i set repeatCount repeatCount.finite(count: 2), it played three times;
I can confirm this behaviour for the repeatCount property.
As a workaround i used the AnimatedImageViewDelegate method animatedImageView(_:didPlayAnimationLoops:)
and the first time the method fires i did what i needed to do after the first end of the gif.
I can confirm this behaviour for the repeatCount property. As a workaround i used the AnimatedImageViewDelegate method animatedImageView(_:didPlayAnimationLoops:) and the first time the method fires i did what i needed to do after the first end of the gif.
but using AnimatedImageViewDelegate doesn't give desired result because it stops the animation on first frame instead of last frame.
I can confirm this behaviour for the repeatCount property. As a workaround i used the AnimatedImageViewDelegate method animatedImageView(_:didPlayAnimationLoops:) and the first time the method fires i did what i needed to do after the first end of the gif.
but using AnimatedImageViewDelegate doesn't give desired result because it stops the animation on first frame instead of last frame.
In my case the animation stopped after the last frame. I was using version 6.3.0 if it matters.
Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
Issue Description
I load gif with AnimatedImageView and set
repeatCount
.finite(count: 1)
or.once
, it plays two times!Xcode11.1 + iOS 13.1.3
What
If i set repeatCount
repeatCount
.finite(count: 0)
, it did not play;If i set repeatCount
repeatCount
.finite(count: 1)
or.once
, it played two times;If i set repeatCount
repeatCount
.finite(count: 2)
, it played three times;Reproduce
Other Comment
[Add anything else here]
The text was updated successfully, but these errors were encountered: