Skip to content

Commit 3d27d25

Browse files
AlexShubinkzaher
authored andcommitted
swift derictives
1 parent d3e5651 commit 3d27d25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Differentiator/SectionModel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ extension SectionModel
3636
}
3737
}
3838

39+
#if swift(>=4.1)
3940
extension SectionModel
4041
: Equatable where Section: Equatable, ItemType: Equatable {
4142
public static func == (lhs: SectionModel, rhs: SectionModel) -> Bool {
4243
return lhs.model == rhs.model
4344
&& lhs.items == rhs.items
4445
}
4546
}
47+
#endif
4648

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

0 commit comments

Comments
 (0)