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

SwiftSVG cannot be build in macOS app with macOS 14 SDK #190

Open
MariusDeReus opened this issue Jan 17, 2024 · 0 comments
Open

SwiftSVG cannot be build in macOS app with macOS 14 SDK #190

MariusDeReus opened this issue Jan 17, 2024 · 0 comments

Comments

@MariusDeReus
Copy link

Description of the Issue
macOS 14 added new cases to the NSBezierPath.ElementType, namely .cubicCurveTo (== rename of .curveTo) and .quadraticCurveTo.
Therefore compiling NSBezierPath+CrossPlatform fails to build in a project on macOS 14.x with the error that the switch (on line 42) is must be exhaustive.
For me it is not obvious how to solve the case for the quadraticCurveTo, as it takes only two points. Not sure which points to take from the array of points as argument in the call to addQuadCurve(to:,controlPoint:).

Sample SVG
NA

Screenshots
NA

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