diff --git a/Source/animation/types/animation_generators/Cache/AnimationCache.swift b/Source/animation/types/animation_generators/Cache/AnimationCache.swift index fcafa493..71dc5936 100644 --- a/Source/animation/types/animation_generators/Cache/AnimationCache.swift +++ b/Source/animation/types/animation_generators/Cache/AnimationCache.swift @@ -60,7 +60,7 @@ class AnimationCache { // Clip if let clip = AnimationUtils.absoluteClip(node: node) { let maskLayer = CAShapeLayer() - let origPath = RenderUtils.toBezierPath(clip).cgPath + let origPath = clip.toCGPath() var offsetTransform = CGAffineTransform(translationX: -1.0 * cgRect.origin.x, y: -1.0 * cgRect.origin.y) let clipPath = origPath.mutableCopy(using: &offsetTransform) maskLayer.path = clipPath