Skip to content

Commit 01cb67a

Browse files
authored
Merge pull request #232 from phatmann/swing-repeat
Fix repeat count in the swing animation
2 parents 6a3df44 + 803a87e commit 01cb67a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Spring/Spring.swift

+1
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ public class Spring : NSObject {
358358
animation.keyTimes = [0, 0.2, 0.4, 0.6, 0.8, 1]
359359
animation.duration = CFTimeInterval(duration)
360360
animation.isAdditive = true
361+
animation.repeatCount = repeatCount
361362
animation.beginTime = CACurrentMediaTime() + CFTimeInterval(delay)
362363
layer.add(animation, forKey: "swing")
363364
}

0 commit comments

Comments
 (0)