Skip to content

Commit

Permalink
Release 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Feb 19, 2017
1 parent 5919f5e commit c7b62d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.

---

## [1.0.3](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.3)

#### Anomalizes

* #84 Adds settings data source sections even if view is not in view hierarchy.
* #93 Silence optional debug print warning in swift 3.1
* #96 Adds additional call to `invalidateLayout` after reloading data.

## [1.0.2](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/1.0.2)

* Fixes issue with performing batch updates on view that is not in view hierarchy.
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ Observable.just([SectionModel(model: "title", items: [1, 2, 3])])
```
![RxDataSources example app](https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif)

## Why was custom diff algorithm used?

- 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).
- It's even more problematic to reconcile tree edit distance algorithms with `UI{Table,Collection}View` animated section updates.
- In all practial cases each section item is uniquely identified and that can be used to optimize the algorithm.

## How
Given the following custom data structure:
```swift
Expand Down
7 changes: 3 additions & 4 deletions RxDataSources.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = "RxDataSources"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "This is a collection of reactive data sources for UITableView and UICollectionView."
s.description = <<-DESC
This is a collection of reactive data sources for UITableView and UICollectionView.
It enables creation of animated data sources for table an collection views in just a couple of lines of code.
```swift
let data: Obserable<Section> = ...
let data: Observable<Section> = ...
let dataSource = RxTableViewSectionedAnimatedDataSource<Section>()
dataSource.cellFactory = { (tv, ip, i) in
Expand All @@ -24,8 +24,7 @@ data
// normal reload
data
.bindTo(tableView.rx.items(dataSource: dataSource))
.addDisposableTo(disposeBag)
.bindTo(tableView.rx.items(dataSource: dataSource)).disposed(by: disposeBag)
```
DESC
s.homepage = "https://github.com/ReactiveX/RxSwift"
Expand Down

0 comments on commit c7b62d6

Please sign in to comment.