1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-21 09:59:10 +03:00

Use locus.toCGPath() instead of RenderUtils.toBezierPath(locus).cgPath

This commit is contained in:
Yuri Strot 2018-05-22 11:06:53 +07:00
parent db6b407181
commit 3f0093b3c0

View File

@ -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