SVGs do not support file:// scheme on mac
See original GitHub issueIt appears that the precompiled binaries for mac don’t include the ability for SVGs to reference local files. Here is a simple test which fails to draw the red circle on darwin, but succeeds on linux-x64.
run.sh
will run the testsrun-in-docker.sh
will run them on linux in docker
Note that the “absolute path” tests assume the directory is at /workspace
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Native SVG support | Apple Developer Forums
It has become more and more frustrating that there is no native support for rendering or parsing SVG files in macOS/iOS. Both from...
Read more >How to view an SVG image on Mac OSX? - Super User
I needed a nearly-portable solution to view SVG files (vector export from Google Drawings, which doesn't print large images well) since my Mac...
Read more >SVG Assets in Xcode for Single Scale Images - SwiftLee
It's important to point out that SVGs are only supported on macOS 10.15 or later, iOS 13 or later, and iPadOS or later....
Read more >Bug: [5.0] SVGs cannot be imported (not as components, but ...
Describe the bug When importing a SVG in a regular manner (not as a component): import Logo from './logo.svg' There is an error...
Read more >SVG image XCode support or not…? - Shivam Thaker - Medium
It's important to point out that SVGs are only supported on macOS 10.15 or later, iOS 13 or later, and iPadOS or later....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please feel free to re-open this issue with more details if/when they become available.
Hi @lovell, sadly I ran out of time (and will probably be fully preoccupied for the next several weeks). With this only broken on Mac, it’s taken a backseat to some other projects.
I do still hope to get around to diving back into this, though, since our development is done primarily on Mac.