I follow this sample and successfully created multi-section tableView
, but how can I append items to one of this sections? I can recreate the section but I want to append items instead of reloading tableView
.
Asked
Active
Viewed 296 times
0

Ali Baqbani
- 153
- 1
- 2
- 13
-
did u use "beginUpdate" and "endUpdate" methods of tableview.? In between these methods u can insert item with section and index. – MRizwan33 Dec 17 '17 at 11:27
-
It's not compatible with RxDataSource, so any changes must be made against dataSource not the table view – Ali Baqbani Dec 17 '17 at 12:45
1 Answers
0
You can do something like:
self.sections[lastSectionIndex].items.append(newItem)
where lastSectionIndex
is the index for the section you want to update its items.
Also, I recommend you use Variable
for your sections model for seamless updates.

Amr Hossam
- 2,313
- 1
- 22
- 23