Skip to content

Commit

Permalink
Add fillmode forwards to parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
funzin committed Apr 17, 2019
1 parent 36672f9 commit c18a78c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sica/Source/Animator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ public final class Animator {
layer?.removeAnimation(forKey: key)
}

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

if case .sequence = type {
calculateBeginTime()
}
group.animations = animations
group.duration = totalDuration(type: type)
group.fillMode = FillMode.forwards.rawValue
group.fillMode = fillMode.rawValue
group.isRemovedOnCompletion = isRemovedOnCompletion

if let completion = completion {
Expand Down

0 comments on commit c18a78c

Please sign in to comment.