From c7b62d6b5e4dc69207bde3d1711a16496cebbf34 Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Sun, 19 Feb 2017 11:01:29 +0100 Subject: [PATCH] Release 1.0.3 --- CHANGELOG.md | 8 ++++++++ README.md | 6 ------ RxDataSources.podspec | 7 +++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3db19bd..22943ab1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index f060e11a..255df93d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/RxDataSources.podspec b/RxDataSources.podspec index 7e2d178f..165eee08 100644 --- a/RxDataSources.podspec +++ b/RxDataSources.podspec @@ -1,6 +1,6 @@ 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. @@ -8,7 +8,7 @@ This is a collection of reactive data sources for UITableView and UICollectionVi It enables creation of animated data sources for table an collection views in just a couple of lines of code. ```swift -let data: Obserable
= ... +let data: Observable
= ... let dataSource = RxTableViewSectionedAnimatedDataSource
() dataSource.cellFactory = { (tv, ip, i) in @@ -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"