How to Convert SVGPath String to SVG Image And Set in ImageView.
DixPatel009 opened this issue · 2 comments
DixPatel009 commented
Steps to reproduce the issue
- i have svgpath string like this
"<svg id=\"Layer_1\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 156.38 117.54\"><polygon points=\"112.12 106.05 136.48 106.05 90.37 26.18 105.49 0 156.38 0 129.09 47.28 122.45 35.79 136.48 11.49 112.12 11.49 103.64 26.18 156.38 117.53 105.49 117.53 44.26 11.49 19.9 11.49 66.01 91.35 50.89 117.53 0 117.53 27.3 70.25 33.93 81.74 19.9 106.05 44.26 106.05 52.74 91.35 0 0 50.89 0 112.12 106.05\" fill=\"#00507d\" fill-rule=\"evenodd\"/></svg>"
- i want to display this svg string in imageview.
Specifications
- PocketSVG Version: latest
- Xcode Version: 13.2.1
- iOS/macOS Version: 15.2.1/12.1
arielelkin commented
Could you please specify what the issue is?
arielelkin commented
closing as i haven't heard back from you, but feel free to reopen with more information.