Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following valid svg file unable to be rendered #66

Open
TwoDeen opened this issue Nov 6, 2024 · 0 comments
Open

Following valid svg file unable to be rendered #66

TwoDeen opened this issue Nov 6, 2024 · 0 comments

Comments

@TwoDeen
Copy link

TwoDeen commented Nov 6, 2024

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="&#19968;" ns1:radical="general">
        <ns0:path id="kvg:04e00-s1" ns1:type="&#12752;" 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant