Skip to content

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

@MariusDeReus

Description

@MariusDeReus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions