Skip to content

Commit 803a87e

Browse files
committed
Fix repeat count in the swing animation
1 parent d59e046 commit 803a87e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Spring/Spring.swift

Lines changed: 1 addition & 0 deletions
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)