Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SVG render in an external CALayer [improvement] #771

Open
NeedNap opened this issue Oct 1, 2021 · 1 comment
Open

Make SVG render in an external CALayer [improvement] #771

NeedNap opened this issue Oct 1, 2021 · 1 comment

Comments

@NeedNap
Copy link

NeedNap commented Oct 1, 2021

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
Copy link
Author

NeedNap commented Oct 18, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant