-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
The foll. svg file contents unable to render using SVGView(contentsOf: bundleURL) returning nil in SwiftUI code
The same code works with other files.
The same file is rendered without issue using Gaplin (MacOS).
Unable to understand.
How to reproduce:
- copy the following contents and save it to an SVG file
- open it with any SVGEditor, it will work
- but with the code of SVGView, it fails to render without any error message
File contents:
<ns0:svg xmlns:ns0="http://www.w3.org/2000/svg" xmlns:ns1="http://kanjivg.tagaini.net" width="109" height="109" viewBox="0 0 109 109">
<ns0:g id="kvg:StrokePaths_04e00" style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;">
<ns0:g id="kvg:04e00" ns1:element="一" ns1:radical="general">
<ns0:path id="kvg:04e00-s1" ns1:type="㇐" d="M11,54.25c3.19,0.62,6.25,0.75,9.73,0.5c20.64-1.5,50.39-5.12,68.58-5.24c3.6-0.02,5.77,0.24,7.57,0.49" />
</ns0:g>
</ns0:g>
</ns0:svg>
Metadata
Metadata
Assignees
Labels
No labels