cashapp / redwood

Multiplatform reactive UI for Android, iOS, and web using Kotlin and Jetpack Compose
https://cashapp.github.io/redwood/0.x/docs/
Apache License 2.0
1.63k stars 70 forks source link

Better row insert/remove/move animations in LazyColumn #1840

Open swankjesse opened 7 months ago

swankjesse commented 7 months ago

Right now we tell UITableView / RecyclerView that rows have been added or removed, but we don’t expose APIs to express which animations to use.

josereyes commented 7 months ago

I believe we need to replace UIViewLazyList.kt's insertRows(...) and deleteRows(...) UITableViewRowAnimationNone with UITableViewRowAnimationAutomatic

This video shows the expected behavior https://youtu.be/-joSiASAnjA?t=184