AP
Size: a a a
AP
П
func startScoreAnimations() {
let scoringAnimation = CABasicAnimation(keyPath:
#keyPath#keyPath(CAShapeLayer.strokeEnd))
scoringAnimation.toValue = progress
scoringAnimation.duration = duration
scoringAnimation.timingFunction = CAMediaTimingFunction(name: .linear)
scoringAnimation.fillMode = .forwards
scoringAnimation.isRemovedOnCompletion =
false
progressScoreLayer.add(scoringAnimation, forKey: scoringAnimation.keyPath)
}
П
П
progressScoreLayer
имеет точно такой же путь, как твоя черная линияП
AY
S
AY
S
AY
СМ
СМ
E
N
СМ
D
СМ