How to get animations when new item is added to LazyColumn?

Viewed 681

How, to attain animation like we get in DiffUtil RecyclerView when new items are added to the list?

I've a LazyColumn with multiple items as composables. Each composable are different. My code looks like this:

LazyColumn{
    item{
        ChipGroup()
    }
    viewModel.list.forEach{
        item{
            ListItem()
        }
    }
    item{
        ContinueButton()
    }
    .
    .
    .
}

So, How to attain a simple animation like we get as default in DiffUtil RecyclerView when each time viewModel.list gets a new item added?

0 Answers
Related