Skip to content

Commit bd3ea7f

Browse files
committed
only stroke if there is no fill
1 parent b7793d8 commit bd3ea7f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SwiftDraw/Renderer.SFSymbol.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ extension SFSymbolRenderer {
202202
} else {
203203
paths.append(SymbolPath(class: symbolClass, path: fillPath.applying(matrix: ctm)))
204204
}
205-
}
206-
207-
if let strokePath = makeStrokePath(for: shape, stroke: stroke, preserve: isSFSymbolLayer) {
205+
} else if let strokePath = makeStrokePath(for: shape, stroke: stroke, preserve: isSFSymbolLayer) {
208206
paths.append(SymbolPath(class: symbolClass, path: strokePath.applying(matrix: ctm)))
209207
}
210208

0 commit comments

Comments
 (0)