O
Size: a a a
O
SS
AK
SS
SS
SS
O
SS
let from = layer.path
let to = newPath.cgPath
let animation = CABasicAnimation()
animation.duration = duration
animation.keyPath = #keyPath(CAShapeLayer.path)
animation.fromValue = from
animation.toValue = to
layer.path = to
layer.add(animation, forKey: nil)
O
let from = layer.path
let to = newPath.cgPath
let animation = CABasicAnimation()
animation.duration = duration
animation.keyPath = #keyPath(CAShapeLayer.path)
animation.fromValue = from
animation.toValue = to
layer.path = to
layer.add(animation, forKey: nil)
A
IS
AI
KI
O
AK