Skip to content

Commit c7b62d6

Browse files
committed
Release 1.0.3
1 parent 5919f5e commit c7b62d6

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.
33

44
---
55

6+
## [1.0.3](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.3)
7+
8+
#### Anomalizes
9+
10+
* #84 Adds settings data source sections even if view is not in view hierarchy.
11+
* #93 Silence optional debug print warning in swift 3.1
12+
* #96 Adds additional call to `invalidateLayout` after reloading data.
13+
614
## [1.0.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.2)
715

816
* Fixes issue with performing batch updates on view that is not in view hierarchy.

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ Observable.just([SectionModel(model: "title", items: [1, 2, 3])])
5656
```
5757
![RxDataSources example app](https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif)
5858

59-
## Why was custom diff algorithm used?
60-
61-
- All dynamic programming diff solutions (longest common subsequence problem) have worst quardratic time complexity O(n^2). If you are interested in exploring those solutions, we recommend [Diff](https://github.com/wokalski/Diff.swift#diffswift).
62-
- It's even more problematic to reconcile tree edit distance algorithms with `UI{Table,Collection}View` animated section updates.
63-
- In all practial cases each section item is uniquely identified and that can be used to optimize the algorithm.
64-
6559
## How
6660
Given the following custom data structure:
6761
```swift

RxDataSources.podspec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Pod::Spec.new do |s|
22
s.name = "RxDataSources"
3-
s.version = "1.0.2"
3+
s.version = "1.0.3"
44
s.summary = "This is a collection of reactive data sources for UITableView and UICollectionView."
55
s.description = <<-DESC
66
This is a collection of reactive data sources for UITableView and UICollectionView.
77
88
It enables creation of animated data sources for table an collection views in just a couple of lines of code.
99
1010
```swift
11-
let data: Obserable<Section> = ...
11+
let data: Observable<Section> = ...
1212
1313
let dataSource = RxTableViewSectionedAnimatedDataSource<Section>()
1414
dataSource.cellFactory = { (tv, ip, i) in
@@ -24,8 +24,7 @@ data
2424
2525
// normal reload
2626
data
27-
.bindTo(tableView.rx.items(dataSource: dataSource))
28-
.addDisposableTo(disposeBag)
27+
.bindTo(tableView.rx.items(dataSource: dataSource)).disposed(by: disposeBag)
2928
```
3029
DESC
3130
s.homepage = "https://github.com/ReactiveX/RxSwift"

0 commit comments

Comments
 (0)