You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let dataSource = RxTableViewSectionedReloadDataSource<MySection>()
22
-
dataSource.cellFactory = { (tv, ip, i) in
23
-
let cell = tv.dequeueReusableCellWithIdentifier("Cell") ?? UITableViewCell(style:.Default, reuseIdentifier: "Cell")
24
-
cell.textLabel!.text = "\(i)"
25
-
return cell
26
-
}
27
-
```
28
-
29
-
### Animated table and collection view updates
30
-
31
-
**For the animated data sources to be able to detect identity and changes of objects, your section needs to conform to `AnimatableSectionModelType` or you can just use `AnimatableSectionModel`. Demonstration how to use them and implement `AnimatableSectionModelType` is contained inside the Example app.**
32
-
33
-
In case you want to use animated data sources, just replace
34
-
35
-
`let dataSource = RxTableViewSectionedReloadDataSource<MySection>()` with <br/>`let dataSource = RxTableViewSectionedAnimatedDataSource<MySection>()`
36
-
37
-
and
38
-
39
-
` .bindTo(tableView.rx_itemsWithDataSource(dataSource))` with <br/> `.bindTo(tableView.rx_itemsAnimatedWithDataSource(dataSource)) `
18
+

0 commit comments