Interpolación / interpolación entre dos CGPaths / UIBeziers

Tengo un CAShapeLayer que contiene un CGPath. Usando la animación incorporada de iOS, puedo transformar fácilmente este camino en otro usando una animación:

    CABasicAnimation *morph = [CABasicAnimation animationWithKeyPath:@"path"];
    morph.fromValue = (id)myLayer.path;
    mayLayer.path = [self getNewPath];
    morph.toValue = (id)myLayer.path;
    morph.duration = 0.3;
    [myLayer addAnimation:morph forKey:nil];

Eso funciona perfectamente.

Sin embargo, ahora me gustaría transformarme gradualmente entre estas rutas durante una operación de arrastre. Para hacer esto, necesito poder recuperar la ruta interpolada en cualquier punto durante el arrastre. ¿Hay alguna manera de preguntar a iOS por esto?

Respuestas a la pregunta(1)

Su respuesta a la pregunta