View not updating after update to viewModel
I have the below list of items which has a checkbox next to each item in the form of a button. When the button is not selected, a black empty circle should show. When the button is selected there should be a checkmark inside the black circle.
From running the code and looking at the debug logs, the view model is updating, however my view is not. What's missing?
data class ListItem(
var title: String,
var checked: Boolean
)
class ItemsViewModel: ViewModel() {
private var...