I have a layer on which I define an animation with a beginTime
in the future (CACurrentMediaTime() + 0.3
). In order to synchronize the model layer with the presentation layer I usually set the final property value (a path
in this case) right before I start the animation. In this case however, this will cause the final animation value to be displayed until the property animation starts.
The only way I can think of fixing this right now is with a delegate, but this seems ugly and convoluted. Is there a recommended way to do this?
I would try setting the layer's fillMode
to .backwards
.