Usage
Create a folder called xml-images
in the module folder.
:module/xml-images
Android
Multiplatform
Generate images
You can manually generate ImageVector for these XML files by calling gradle generateImages
. This will create a Kotlin file for each XML file containing the ImageVector in the build folder.
Now, you can use reference this image in the Compose code:
Note that automatically a category called "Icons" has been created. A category is created for each subfolder in xml-images
folder.