I use this code to animate Shape
self.animator = UIViewPropertyAnimator(duration: 45.0, curve: .linear) { self.animationShape!.strokeEnd = 1.0 } self.animator.startAnimation()
and after startAnimation() line just jumped to last position without animation. Also, with UIView.animateWithDuration i don't have any problem in this case but I need to use UIViewPropertyAnimator to start and pause animation
I use this code to animate Shape
self.animator = UIViewPropertyAnimator(duration: 45.0, curve: .linear) { self.animationShape!.strokeEnd = 1.0 } self.animator.startAnimation()and after
startAnimation()line just jumped to last position without animation. Also, withUIView.animateWithDurationi don't have any problem in this case but I need to use UIViewPropertyAnimator to start and pause animation