mchoe / SwiftSVG

A simple, performant, and lightweight SVG parser
Other
1.92k stars 230 forks source link

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

Open MariusDeReus opened 6 months ago

MariusDeReus commented 6 months ago

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