CustomShapeImageView
CustomShapeImageView copied to clipboard
i want add new svg,but it does't show
hi, i add a new svg to show regular pentagon,but it does’t show shape_7svg.txt
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!