DevSrSouza / svg-to-compose

Converts SVG and Android Vector Drawable in Compose Multiplatform source code
MIT License
418 stars 36 forks source link

Move toKotlinPropertyName call to default param lambda #17

Closed c5inco closed 10 months ago

c5inco commented 1 year ago

I think having this call in the iconNameTransformer call is too opinionated, especially since not every set of icons exactly follow the Java file name convention, e.g. "icon_name_with_underscores".

This allows doing the transform more in the user-provided lambda. Otherwise, it can default to use toKotlinPropertyName.