CustomShapeImageView icon indicating copy to clipboard operation
CustomShapeImageView copied to clipboard

i want add new svg,but it does't show

Open zjc opened this issue 8 years ago • 1 comments

hi, i add a new svg to show regular pentagon,but it does’t show shape_7svg.txt

zjc avatar Apr 20 '16 08:04 zjc

Make sure you have the size attr on the svg main tag:

<svg ..... width="96px" height="96px"> </svg>

And also add your styles inline into path tag:

<path .... style="fill:#000000;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" .... />

Note: if you are using Illustrator and you wanna save svg before you doing that select all your vector and press (CMD + 8) to convert to path and then you can clean the vector by object > path > Clean Up

I hope it will help you!

alanelias avatar May 09 '16 04:05 alanelias