From c18a78c302663e93b0190e523c2de677d1d6b464 Mon Sep 17 00:00:00 2001 From: funzin Date: Wed, 17 Apr 2019 22:20:31 +0900 Subject: [PATCH] Add fillmode forwards to parameter --- Sica/Source/Animator.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sica/Source/Animator.swift b/Sica/Source/Animator.swift index 79a9898..7488212 100644 --- a/Sica/Source/Animator.swift +++ b/Sica/Source/Animator.swift @@ -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 {