Skip to content

Commit

Permalink
Merge pull request #120 from onevcat/fix/v1-repeat-count
Browse files Browse the repository at this point in the history
Set correct repeat count
  • Loading branch information
onevcat authored Feb 8, 2022
2 parents dcc79f3 + 05fc138 commit 9ed9d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion APNGKit/APNGImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ open class APNGImageView: APNGView {
currentFrameIndex = 0
repeated = repeated + 1

if image.repeatCount != RepeatForever && repeated >= image.repeatCount {
if image.repeatCount != RepeatForever && repeated > image.repeatCount {
stopAnimating()
// Stop in the last frame
return
Expand Down

0 comments on commit 9ed9d72

Please sign in to comment.