Skip to content

Commit 1b20829

Browse files
committed
Rename RxTableViewSectionedDataSource in TableViewSectionedDataSource
1 parent 8aacb67 commit 1b20829

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Example/Example2_RandomizedSectionsAnimation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ViewController: UIViewController {
8383
// MARK: Skinning
8484
extension ViewController {
8585

86-
func skinTableViewDataSource(_ dataSource: RxTableViewSectionedDataSource<NumberSection>) {
86+
func skinTableViewDataSource(_ dataSource: TableViewSectionedDataSource<NumberSection>) {
8787
dataSource.configureCell = { (_, tv, ip, i) in
8888
let cell = tv.dequeueReusableCell(withIdentifier: "Cell") ?? UITableViewCell(style:.default, reuseIdentifier: "Cell")
8989

Sources/DataSources+Rx/RxTableViewSectionedAnimatedDataSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import RxCocoa
1414
#endif
1515

1616
public class RxTableViewSectionedAnimatedDataSource<S: AnimatableSectionModelType>
17-
: RxTableViewSectionedDataSource<S>
17+
: TableViewSectionedDataSource<S>
1818
, RxTableViewDataSourceType {
1919

2020
public typealias Element = [S]

Sources/DataSources+Rx/RxTableViewSectionedReloadDataSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import RxCocoa
1414
#endif
1515

1616
public class RxTableViewSectionedReloadDataSource<S: SectionModelType>
17-
: RxTableViewSectionedDataSource<S>
17+
: TableViewSectionedDataSource<S>
1818
, RxTableViewDataSourceType {
1919
public typealias Element = [S]
2020

Sources/DataSources/TableViewSectionedDataSource.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ public class _TableViewSectionedDataSource
100100

101101
}
102102

103-
public class RxTableViewSectionedDataSource<S: SectionModelType>
103+
public class TableViewSectionedDataSource<S: SectionModelType>
104104
: _TableViewSectionedDataSource
105105
, SectionedViewDataSourceType {
106106

107107
public typealias I = S.Item
108108
public typealias Section = S
109-
public typealias CellFactory = (RxTableViewSectionedDataSource<S>, UITableView, IndexPath, I) -> UITableViewCell
109+
public typealias CellFactory = (TableViewSectionedDataSource<S>, UITableView, IndexPath, I) -> UITableViewCell
110110

111111
#if DEBUG
112112
// If data source has already been bound, then mutating it
@@ -166,29 +166,29 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
166166
}
167167
}
168168

169-
public var titleForHeaderInSection: ((RxTableViewSectionedDataSource<S>, Int) -> String?)? {
169+
public var titleForHeaderInSection: ((TableViewSectionedDataSource<S>, Int) -> String?)? {
170170
didSet {
171171
#if DEBUG
172172
ensureNotMutatedAfterBinding()
173173
#endif
174174
}
175175
}
176-
public var titleForFooterInSection: ((RxTableViewSectionedDataSource<S>, Int) -> String?)? {
176+
public var titleForFooterInSection: ((TableViewSectionedDataSource<S>, Int) -> String?)? {
177177
didSet {
178178
#if DEBUG
179179
ensureNotMutatedAfterBinding()
180180
#endif
181181
}
182182
}
183183

184-
public var canEditRowAtIndexPath: ((RxTableViewSectionedDataSource<S>, IndexPath) -> Bool)? {
184+
public var canEditRowAtIndexPath: ((TableViewSectionedDataSource<S>, IndexPath) -> Bool)? {
185185
didSet {
186186
#if DEBUG
187187
ensureNotMutatedAfterBinding()
188188
#endif
189189
}
190190
}
191-
public var canMoveRowAtIndexPath: ((RxTableViewSectionedDataSource<S>, IndexPath) -> Bool)? {
191+
public var canMoveRowAtIndexPath: ((TableViewSectionedDataSource<S>, IndexPath) -> Bool)? {
192192
didSet {
193193
#if DEBUG
194194
ensureNotMutatedAfterBinding()
@@ -199,14 +199,14 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
199199
public var rowAnimation: UITableViewRowAnimation = .automatic
200200

201201
#if os(iOS)
202-
public var sectionIndexTitles: ((RxTableViewSectionedDataSource<S>) -> [String]?)? {
202+
public var sectionIndexTitles: ((TableViewSectionedDataSource<S>) -> [String]?)? {
203203
didSet {
204204
#if DEBUG
205205
ensureNotMutatedAfterBinding()
206206
#endif
207207
}
208208
}
209-
public var sectionForSectionIndexTitle:((RxTableViewSectionedDataSource<S>, _ title: String, _ index: Int) -> Int)? {
209+
public var sectionForSectionIndexTitle:((TableViewSectionedDataSource<S>, _ title: String, _ index: Int) -> Int)? {
210210
didSet {
211211
#if DEBUG
212212
ensureNotMutatedAfterBinding()

0 commit comments

Comments
 (0)