From fa28ef906310d1ae6794959037d48de98339227b Mon Sep 17 00:00:00 2001 From: Jeff Verkoeyen Date: Fri, 12 May 2017 13:58:34 -0400 Subject: [PATCH] Also slow down the beginTime for tweens when simulator slow motion is enabled. Reviewers: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, markwei Reviewed By: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, markwei Tags: #material_motion Differential Revision: http://codereview.cc/D3219 --- src/reactivetypes/Reactive+CALayer.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reactivetypes/Reactive+CALayer.swift b/src/reactivetypes/Reactive+CALayer.swift index 09f2359..b27257a 100644 --- a/src/reactivetypes/Reactive+CALayer.swift +++ b/src/reactivetypes/Reactive+CALayer.swift @@ -154,6 +154,7 @@ extension Reactive where O: CALayer { let animation = info.animation.copy() as! CAPropertyAnimation animation.duration *= TimeInterval(simulatorDragCoefficient()) + animation.beginTime *= TimeInterval(simulatorDragCoefficient()) if layer.speed == 0, let lastTimelineState = layer.lastTimelineState { animation.beginTime = TimeInterval(lastTimelineState.beginTime) + animation.beginTime