https://kotlinlang.org logo
#compose
Title
# compose
r

Robert Menke

03/17/2022, 7:49 PM
Is there a way with coil-compose to specify that you want the placeholder image to render at a different size than the real image?
p

Patrick Kellison

03/17/2022, 7:56 PM
I think SubcomposeAsyncImage can do that if you're using 2.0
Copy code
SubcomposeAsyncImage(
                model = ImageRequest.Builder(LocalContext.current)
                    .data(imgUrl)
                    .build(),
                contentDescription = null,
                loading = {
                    LargeComposable()
                }
            )
r

Robert Menke

03/17/2022, 8:05 PM
Yep, you’re right. I’ll use that. Thank you!
1
🙌 1