vgo icon indicating copy to clipboard operation
vgo copied to clipboard

Generate compose ImageVector

Open jzbrooks opened this issue 1 year ago • 2 comments

It might be useful to generate jetpack compose ImageVector from IR. It should be achievable with KotlinPoet, but better alternatives may exist.

jzbrooks avatar Apr 29 '24 12:04 jzbrooks

I was planning to based on https://github.com/DevSrSouza/svg-to-compose/issues/23.

Goooler avatar Jul 19 '24 07:07 Goooler

I don't completely follow.

I've wrestled with a similar approach to that tool (#47), but I lean away from that approach to avoid parsing the document multiple times and to avoid being glued to the limitations of the google implementation.

That said, I'm open to merging #47 since I haven't spent a ton of time with the project anyway lately (though I intend to soon, hopefully).

This tool would still need a composable writer that is able to take vgo-core IR and output a composable.

jzbrooks avatar Jul 19 '24 12:07 jzbrooks

I'm going to close this with #147, which is early a reasonable MVP of the functionality. Issues exist (like #154).

jzbrooks avatar May 02 '25 01:05 jzbrooks