// In the drop-down refresh, the queried result is directly replaced with the original data
headerRefreshData.drive(onNext: { (observable) in
let data = (observable.data! .records)!
var list = [MessageSection]()
for item in data {
let num = “\(Int(arc4random()))”
let model = MessageSection(header: num, data: [item])
list.append(model)
}
self.tableData.accept(list)
}).disposed(by: dependency.disposeBag)
Solution: RxTableViewSectionedAnimatedDataSource replace RxTableViewSectionedReloadDataSource, the reason is unknown, free again to study
https://github.com/RxSwiftCommunity/RxDataSources/pull/239#