Replies: 1 comment
-
Coil is able to load anything on the file system through Okio or any network URLs via Ktor from common code. Assets aren't well supported in multiplatform at the moment unfortunately. I'm waiting to see how Compose Multiplatform's resource support evolves (it's very early) before integrating with it. In the meantime you'll have to add your own |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've local images in Android's
drawable-nodpi
folder and ios app'sAssets.xcassets
folder.Now we have defined name of the images in common code of compose multiplatfrom project using
String
name of the image.For example, for image named
about_app_icon
, how do we load this image via common code usingAsyncImage
API? We get the name of the image via ViewModel in composable likeviewModel.icon
PS: Is there a better way to load local images?
Beta Was this translation helpful? Give feedback.
All reactions