JCB Image loading - How to use Coil to load remote image?

PHOTO EMBED

Mon Oct 04 2021 05:46:08 GMT+0000 (Coordinated Universal Time)

Saved by @GoodRequest. #kotlin

Row(
    modifier = Modifier.padding(16.dp),
    horizontalArrangement = Arrangement.spacedBy(16.dp)
) {
    //Important image loading part
    //Remembering of painter
    val painter = rememberImagePainter(data = cat.photoUrl)
	
    Image(
       modifier = Modifier
           .size(100.dp)
           .clip(RoundedCornerShape(16.dp)),
       //Use painter in Image composable
       painter = painter,
       contentDescription = "Cat"
    )
    //Rest of compose code
}
content_copyCOPY