💻 A fast and flexible O(n) difference algorithm framework for Swift collection.
Differentiable.differenceIdentifier
is now renamed to identifier
.Differentiable.DifferenceIdentifier
is now renamed to Identifier
.Differentiable.isUpdated(from:)
is now meaning reversed, name has become isContentEqual(to:)
.⚠️ isUpdated(from:)
became isContentEqual(to:)
and the meaning was reversed.
An update is detected by returning false
.
func isUpdated(from source: User) -> Bool {
return name != source.name
}
↓↓↓
func isContentEqual(to source: User) -> Bool {
return name == source.name
}