bohregard
06/16/2020, 10:35 PMval savedIcon = state { post.saved.icon }
Image(
modifier = Modifier.weight(1f) + Modifier.clickable(onClick = {
post.toggleSave()
savedIcon.value = post.saved.icon
}),
asset = vectorResource(id = savedIcon.value)
)
On toggle, the icon resource should swap. It works the first time (outline to solid) but on the second time the outline shows on top (shown in the pictures below). Any reason why this is happening?bohregard
06/16/2020, 10:37 PMLouis Pullen-Freilich [G]
06/16/2020, 10:42 PM(.copy(name = )
does it still not work properly?bohregard
06/16/2020, 10:45 PMbohregard
06/16/2020, 10:46 PMbohregard
06/16/2020, 10:46 PM