jzbrooks / vgo

vector graphic optimization
MIT License
39 stars 1 forks source link

Generate compose ImageVector #48

Open jzbrooks opened 5 months ago

jzbrooks commented 5 months ago

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

Goooler commented 2 months ago

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

jzbrooks commented 2 months ago

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.