Skip to content

Commit 266cc6c

Browse files
committed
Polish for examples.
1 parent 544c895 commit 266cc6c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Example/NumberSection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ extension IntItem
8686
: CustomStringConvertible {
8787

8888
var description: String {
89-
return "\(number) @ \(Int(date.timeIntervalSince1970) % 1000)"
89+
return "\(number)"
9090
}
9191
}

Example/ViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ViewController: UIViewController {
6868
// While `useAnimatedUpdateForCollectionView` is false, you can click as fast as
6969
// you want, table view doesn't seem to have same issues like collection view.
7070

71-
let useAnimatedUpdates = false
71+
let useAnimatedUpdates = true
7272
if useAnimatedUpdates {
7373
let cvAnimatedDataSource = RxCollectionViewSectionedAnimatedDataSource<NumberSection>()
7474
skinCollectionViewDataSource(cvAnimatedDataSource)
@@ -139,8 +139,8 @@ class ViewController: UIViewController {
139139
let generate = true
140140
if generate {
141141

142-
let nSections = 10
143-
let nItems = 100
142+
let nSections = 4
143+
let nItems = 2
144144

145145

146146
/*

RxDataSources.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
C8BB76781C4C3E53002B21C8 /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FF3014C1C4AA6DA007376BD /* RxCocoa.framework */; };
106106
C8BB767B1C4C3E53002B21C8 /* RxDataSources.h in Headers */ = {isa = PBXBuildFile; fileRef = C8984C5D1C36AF35001E4272 /* RxDataSources.h */; settings = {ATTRIBUTES = (Public, ); }; };
107107
C8BB76831C4C3EC5002B21C8 /* RxDataSources.h in Headers */ = {isa = PBXBuildFile; fileRef = C8984C5D1C36AF35001E4272 /* RxDataSources.h */; settings = {ATTRIBUTES = (Public, ); }; };
108+
C8E946A01CC6DEC800C5559C /* EditingExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84FC6BED1CA4830A00D3C605 /* EditingExampleViewController.swift */; };
108109
C8EC65C61C4C441B00FC9207 /* RxDataSources.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C8BB76811C4C3E53002B21C8 /* RxDataSources.framework */; };
109110
C8EC65C71C4C441B00FC9207 /* RxDataSources.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C8BB76811C4C3E53002B21C8 /* RxDataSources.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
110111
/* End PBXBuildFile section */
@@ -831,6 +832,7 @@
831832
isa = PBXSourcesBuildPhase;
832833
buildActionMask = 2147483647;
833834
files = (
835+
C8E946A01CC6DEC800C5559C /* EditingExampleViewController.swift in Sources */,
834836
C8BB76451C4C3DD4002B21C8 /* NumberSection.swift in Sources */,
835837
C8BB76461C4C3DD4002B21C8 /* ViewController.swift in Sources */,
836838
C8BB76471C4C3DD4002B21C8 /* Randomizer.swift in Sources */,

0 commit comments

Comments
 (0)