Macaw icon indicating copy to clipboard operation
Macaw copied to clipboard

Make SVG render in an external CALayer [improvement]

Open NeedNap opened this issue 3 years ago • 1 comments

Is it possible to add a method which draws the entire svg in a CALayer passed as parameter? I need this feature for my complex drawing app which is using the CALayers to improve the overall performances.

Thanks

NeedNap avatar Oct 01 '21 11:10 NeedNap

At the moment I changed the Macaw source code adding this simple var on the MacawView class:

public var drawingLayer: CALayer {
    get {
        return drawingView.layer
    }
}

so I can grab the drawing layer from the outside and using it changing its superlayer... And it works fine but now I can't update your lib anymore otherwise I'll loose my changes.

Can you add this code in the new version, please?

NeedNap avatar Oct 18 '21 14:10 NeedNap