Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion SwiftSVG/SVG/Elements/SVGPath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ final class SVGPath: SVGShapeElement, ParsesAsynchronously, DelaysApplyingAttrib
autoreleasepool { () -> () in

let pathDPath = UIBezierPath()
pathDPath.move(to: CGPoint.zero)

if (!(workingString.hasPrefix("M") || workingString.hasPrefix("m"))) {
pathDPath.move(to: CGPoint.zero)
}

let parsePathClosure = {
var previousCommand: PreviousCommand? = nil
Expand Down