Animating `SCNNode` along a path

Is there a way to animate SCNNode along a given CGPath? It doesn't work with the CAKeyframeAnimation as it works with the CALayer. I mean, using this animation:

Code Block swift
let anim = CAKeyframeAnimation(keyPath: "position")
anim.path = CGPath(ellipseIn: CGRect(x: 100, y: 100, width: 300, height: 300), transform: nil)
anim.duration = 5
anim.repeatCount = .infinity
anim.calculationMode = .paced
anim.rotationMode = .rotateAuto


Or is there some workaround to calculate steps from the CGPath?
Animating `SCNNode` along a path
 
 
Q