Skip to content

Commit

Permalink
Merge branch 'master' of github.com:RxSwiftCommunity/RxDataSources
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Feb 17, 2017
2 parents bca9343 + e74f913 commit 5919f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ let dataSource = RxTableViewSectionedReloadDataSource<SectionOfCustomData>()
- etc

```swift
dataSource.configureCell = { ds, tv, ip, item in
dataSource.configureCell = { (ds: RxTableViewSectionedReloadDataSource<SectionOfCustomData>, tv: UITableView, ip: IndexPath, item: Item) in
let cell = tv.dequeueReusableCell(withIdentifier: "Cell", for: ip)
cell.textLabel?.text = "Item \(item.anInt): \(item.aString) - \(item.aCGPoint.x):\(item.aCGPoint.y)"
return cell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ open class RxCollectionViewSectionedReloadDataSource<S: SectionModelType>
#endif
dataSource.setSections(element)
collectionView.reloadData()
collectionView.collectionViewLayout.invalidateLayout()
}.on(observedEvent)
}
}

0 comments on commit 5919f5e

Please sign in to comment.