Kambi Victor
04/07/2024, 11:07 AM@Composable
fun AnimatedVectorDrawable() {
val image = AnimatedImageVector.animatedVectorResource(R.drawable.ic_hourglass_animated)
var atEnd by remember { mutableStateOf(false) }
Image(
painter = rememberAnimatedVectorPainter(image, atEnd),
contentDescription = "Timer",
modifier = Modifier.clickable {
atEnd = !atEnd
},
contentScale = ContentScale.Crop
)
}
in commonMain i tried this but the id, property
that animatedVectorResource is trying to identify is not present in the Res.drawable.ic_hourglass_animatedMax
04/07/2024, 12:34 PMKambi Victor
04/07/2024, 12:36 PMMax
04/08/2024, 8:14 AMKambi Victor
04/08/2024, 8:16 AM