Skip to content

Commit d3e5651

Browse files
AlexShubinkzaher
authored andcommitted
swift 4.1 support
1 parent 521ebad commit d3e5651

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/Differentiator/SectionModel.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ extension SectionModel
3737
}
3838

3939
extension SectionModel
40-
: Equatable where Section: Equatable, ItemType: Equatable {}
40+
: Equatable where Section: Equatable, ItemType: Equatable {
41+
public static func == (lhs: SectionModel, rhs: SectionModel) -> Bool {
42+
return lhs.model == rhs.model
43+
&& lhs.items == rhs.items
44+
}
45+
}
4146

4247
extension SectionModel {
4348
public init(original: SectionModel<Section, Item>, items: [Item]) {

0 commit comments

Comments
 (0)