swhitty / SwiftDraw

Swift library and command line tool to convert SVGs into SFSymbol, PNG, PDF and Swift source code.
zlib License
389 stars 49 forks source link

Failure: No valid content found #21

Closed manicslothpdx closed 1 year ago

manicslothpdx commented 1 year ago

I am trying to convert an SVG to SFSymbol. The other formats work i.e. PDF, PNG, etc. but when I try to use the sfsymbol option, i get the error "Failure: No valid content found." Are there parameters the SVG has to meet before it can be converted into an SFSymbol?

swhitty commented 1 year ago

The SVG must contain at least one shape that includes a path before it can be converted. Are you able to supply a sample SVG that fails with this error?

manicslothpdx commented 1 year ago

Thanks for the quick reply. Your comment led me in the right direction. I needed to "Export Selection... " in Illustrator instead of plain Export.