Describe the solution you'd like
I should be able to do:
AsyncImage(
model = Res.drawable.example_icon,
contentDescription = null,
)
Additional context
I think we're probably going to have to rely on internal semantics to load these resources in customer Fetchers for each platform (similar to how resources are included in the sample:compose app) as we can't use the generated composable functions.
This probably makes sense as an external artifact instead of being bundled with coil-compose-core as these Res classes are only necessary for Compose Multiplatform users - not Compose AndroidX users.
Is your feature request related to a problem? Please describe. We should add support to load Compose Multiplatform image resources via Coil.
Describe the solution you'd like I should be able to do:
Additional context I think we're probably going to have to rely on internal semantics to load these resources in customer
Fetcher
s for each platform (similar to how resources are included in thesample:compose
app) as we can't use the generated composable functions.This probably makes sense as an external artifact instead of being bundled with
coil-compose-core
as theseRes
classes are only necessary for Compose Multiplatform users - not Compose AndroidX users.Open to a PR if someone wants to contribute this!