Skip to content

Commit 5919f5e

Browse files
committed
Merge branch 'master' of github.com:RxSwiftCommunity/RxDataSources
2 parents bca9343 + e74f913 commit 5919f5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ let dataSource = RxTableViewSectionedReloadDataSource<SectionOfCustomData>()
103103
- etc
104104

105105
```swift
106-
dataSource.configureCell = { ds, tv, ip, item in
106+
dataSource.configureCell = { (ds: RxTableViewSectionedReloadDataSource<SectionOfCustomData>, tv: UITableView, ip: IndexPath, item: Item) in
107107
let cell = tv.dequeueReusableCell(withIdentifier: "Cell", for: ip)
108108
cell.textLabel?.text = "Item \(item.anInt): \(item.aString) - \(item.aCGPoint.x):\(item.aCGPoint.y)"
109109
return cell

Sources/DataSources+Rx/RxCollectionViewSectionedReloadDataSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ open class RxCollectionViewSectionedReloadDataSource<S: SectionModelType>
3030
#endif
3131
dataSource.setSections(element)
3232
collectionView.reloadData()
33+
collectionView.collectionViewLayout.invalidateLayout()
3334
}.on(observedEvent)
3435
}
3536
}

0 commit comments

Comments
 (0)