maxsokolov / TableKit

Type-safe declarative table views.
MIT License
706 stars 74 forks source link

Row update and reorder animation #43

Closed AnisovAleksey closed 8 years ago

AnisovAleksey commented 8 years ago

Hi, you created great way for work with UITableView, but I have some questions: How update some data in row with animation? How reorder row with animation?

Thanks

maxsokolov commented 8 years ago

Hi @threat70, Sorry for late response.

1) How update some data in row with animation? You have to create a new rowlet row = TableRow<String, StringTableViewCell>(item: "1"), add it into TableSection or replace some row in TableSection at index and then just use regular UITableView methods to perform animations like insertRowsAtIndexPaths.

2) How reorder row with animation? Just the same. Make changes in your TableSection and then use UITableView methods to perform animations.

AnisovAleksey commented 8 years ago

Thanks for the answer. Do you will add functions for easy-to-use animation?

maxsokolov commented 8 years ago

@threat70 so it's actually possible, don't know when exactly, need to carefully think about this...