ReactorKit icon indicating copy to clipboard operation
ReactorKit copied to clipboard

General question about dynamic tableview content

Open randomiser opened this issue 6 years ago • 1 comments

HI there,

Thanks for making ReactorKit. I'm impressed with what I've seen and used so far.

I'm attempting to use ReactorKit to solve a particular issue I have but can't seem to find any good examples of how to solve this kind of problem. (Note: This example isn't exactly what I need but serves as to illustrate the kind of problem.)

I need to create a data entry form that supports the ability to add ad-hoc fields dynamically at runtime. I'm using a UITableView and a collection of custom UITableViewCells. These cells include a textfield, textview, switch, and so on to support the different kinds of data entry fields.

At runtime the user can click an add button and select to add say an address, name, cell phone number etc.

Supposing the user selected to add an address, the UI would update to show six UITableViewCells each containing a UITextField. One for address line 1, address line 2, suburb, city, postcode, and country. Each of these values would need to be bound to the backend without the entire tableview being refreshed for each key press made.

Do you have any suggestions as to how I can achieve this behaviour with ReactorKit?

Thanks in advance, Matt

randomiser avatar Mar 01 '19 01:03 randomiser

I also have similar question https://github.com/ReactorKit/ReactorKit/issues/158

anirudhamahale avatar Jul 25 '20 05:07 anirudhamahale