Skip to content

Commit 33bf826

Browse files
committed
Fixes wrong super method call.
1 parent bfd4e18 commit 33bf826

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

Sources/DataSources+Rx/UISectionedViewType+RxAnimatedDataSource.swift

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ extension UITableView {
2323
O.E == [Section]
2424
>
2525
(dataSource: DataSource)
26-
(source: O)
26+
-> (source: O)
2727
-> Disposable {
28-
let differences = source.differentiateForSectionedView()
29-
return self.rx_itemsWithDataSource(dataSource)(source: differences)
28+
return { source in
29+
let differences = source.differentiateForSectionedView()
30+
return self.rx_itemsWithDataSource(dataSource)(source: differences)
31+
}
3032
}
3133
}
3234

@@ -40,9 +42,11 @@ extension UICollectionView {
4042
O.E == [Section]
4143
>
4244
(dataSource: DataSource)
43-
(source: O)
45+
-> (source: O)
4446
-> Disposable {
45-
let differences = source.differentiateForSectionedView()
46-
return self.rx_itemsWithDataSource(dataSource)(source: differences)
47+
return { source in
48+
let differences = source.differentiateForSectionedView()
49+
return self.rx_itemsWithDataSource(dataSource)(source: differences)
50+
}
4751
}
4852
}

Sources/DataSources/AnimatableSectionModelType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111
public protocol AnimatableSectionModelType
1212
: SectionModelType
1313
, IdentifiableType {
14-
typealias Item : IdentifiableType, Equatable
14+
associatedtype Item : IdentifiableType, Equatable
1515

1616
init(original: Self, items: [Item])
1717
}

Sources/DataSources/IdentifiableType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010

1111
public protocol IdentifiableType {
12-
typealias Identity: Hashable
12+
associatedtype Identity: Hashable
1313

1414
var identity : Identity { get }
1515
}

Sources/DataSources/SectionModelType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010

1111
public protocol SectionModelType {
12-
typealias Item
12+
associatedtype Item
1313

1414
var items: [Item] { get }
1515
}

Sources/DataSources/TableViewSectionedDataSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
178178

179179
override func _tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
180180
guard let canEditRow = canEditRowAtIndexPath?(self, indexPath: indexPath) else {
181-
return super._tableView(tableView, canMoveRowAtIndexPath: indexPath)
181+
return super._tableView(tableView, canEditRowAtIndexPath: indexPath)
182182
}
183183

184184
return canEditRow

0 commit comments

Comments
 (0)