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:
parent
db6b407181
commit
3f0093b3c0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user