I see how to use named images in commonMain, but how can I pass a reference to an image to a function?
I've got a list of classes to be "consumed" as menu items by ModalDrawerSheet, but I can't get passing the name as a string to work, and trying to pass the image resource into painterResource to generate an icon complains that it can't find the (svg) file in (androidMain) drawables, although I have run both Moko generation tasks manually.
✅ 1
a
alex009
07/30/2023, 3:32 PM
i think maybe i not understand question, but i try to answer.
if you want use named resources you should just call