I want to animate the change between Icons.Default.Check and Icons.Default.Close, animate as in fade one out and the other in.
I have looked into the animation*AsState however it doesn't seem like there is a built-in way to do this out of the box and I am not experienced enough in Jetpack Compose to figure out the correct way to make a custom animation like this.
if(isChecked){
Icon(imageVector = Icons.Default.Check, contentDescription = "", tint = Color.Black)
}else{
Icon(imageVector = Icons.Default.Close, contentDescription = "", tint = Color.Gray)
}