Skip to content

Commit 5e052a9

Browse files
authored
Merge pull request #22 from cats-oss/add-fillmode-to-param
Add fillmode forwards to parameter
2 parents a3d8587 + c18a78c commit 5e052a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sica/Source/Animator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ public final class Animator {
100100
layer?.removeAnimation(forKey: key)
101101
}
102102

103-
public func run(type: AnimationPlayType, isRemovedOnCompletion: Bool = false, completion: (() -> Void)? = nil) {
103+
public func run(type: AnimationPlayType, fillMode: FillMode = FillMode.forwards, isRemovedOnCompletion: Bool = false, completion: (() -> Void)? = nil) {
104104

105105
if case .sequence = type {
106106
calculateBeginTime()
107107
}
108108
group.animations = animations
109109
group.duration = totalDuration(type: type)
110-
group.fillMode = FillMode.forwards.rawValue
110+
group.fillMode = fillMode.rawValue
111111
group.isRemovedOnCompletion = isRemovedOnCompletion
112112

113113
if let completion = completion {

0 commit comments

Comments
 (0)