-
Notifications
You must be signed in to change notification settings - Fork 18
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
CALayer coordinate system flipped #16
Comments
The quick-and-dirty solution would probably have your NSView subclass be flipped:
I realize this might not be ideal if you want to do your own drawing on your own class, though. |
Thanks for your quick reply. I ended up using CALayer’s “geometryFlipped” property in combination with a custom category flipping coordinates on CALayer’s frame property in order to compose an image from multiple groups stored in a SVG file. @implementation CALayer (flipPos) -(void)flipCoordinatesForRect:(NSRect)frameRect { Andreas Zöllner Absender: MaddTheSane notifications@github.commailto:notifications@github.com The quick-and-dirty solution would probably have your NSView subclass be flipped:
I realize this might not be ideal if you want to do your own drawing on your own class, though. — |
When adding a CALayer for a single SVGElement the CALayer is rendered flipped.
I'm doing this in a NSView subclass:
The text was updated successfully, but these errors were encountered: