Skip to content

Commit 1689325

Browse files
AlexShubinkzaher
authored andcommitted
SectionModel made equatable when its model and items conforms to equatable.
1 parent 5eb763b commit 1689325

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
66
#### Enhancements
77
* Reduce computational complexity. #242
88
* Adapted for RxSwift 4.2
9+
* SectionModel made equatable when its model and items conforms to equatable.
910

1011
## [3.1.0](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/3.1.0)
1112

Sources/Differentiator/SectionModel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ extension SectionModel
3636
}
3737
}
3838

39+
extension SectionModel
40+
: Equatable where Section: Equatable, ItemType: Equatable {}
41+
3942
extension SectionModel {
4043
public init(original: SectionModel<Section, Item>, items: [Item]) {
4144
self.model = original.model

0 commit comments

Comments
 (0)