Skip to content

Commit

Permalink
Merge pull request #1030 from woxtu/contributors-counting-animation
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-usu authored Sep 11, 2024
2 parents c3466dc + 32177de commit 4862d8a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ struct ContributorsCountItem: View {
}

func animate() {
if tracker >= totalContributor { return }

let interval = duration / Double(totalContributor)
Timer.scheduledTimer(withTimeInterval: interval, repeats: true) { time in
tracker += 1
Expand Down

0 comments on commit 4862d8a

Please sign in to comment.