Working on my first fully kotlin/kmp/compose app for ios and android. I need to display a bitmap image in my app.
Do I need to use moko resources dependency, or is there some other recommended solution at this point?
Colton Idle
08/29/2023, 2:30 PM
Currently if I follow some tutorials I end up getting
org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: myimage.png on ios. while it works on android
Use compose 1.5.0 with regular framework and add the compose resources dependency, everything should work fine. Also avoid using resources from multiple modules, it's not supported yet for iOS.
c
Colton Idle
08/29/2023, 3:17 PM
alright. i cloned the compose multiplatofrm ios template like over a week ago, so i guess i should bite the bullet and get rid of cocoapods. 😅
f
Farid Benhaimoud
08/29/2023, 4:14 PM
@mohamed rejeb Even though I only use resources from one module (shared) I still get an error when using org.jetbrains.compose.resources with moko resources in iOS