diff --git a/Sources/Shared/Protocols/ElementRepresentable.swift b/Sources/Shared/Protocols/ElementRepresentable.swift index 02e0637..176a0de 100644 --- a/Sources/Shared/Protocols/ElementRepresentable.swift +++ b/Sources/Shared/Protocols/ElementRepresentable.swift @@ -31,6 +31,12 @@ public protocol Differentiable { func isContentEqual(to other: Differentiable) -> Bool } +public extension Differentiable { + func isContentEqual(to other: Differentiable) -> Bool { + return self.differenceIdentifier == other.differenceIdentifier + } +} + // MARK: - ElementRepresentable - public protocol ElementRepresentable: Differentiable {