jflinter / Dwifft

Swift Diff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Dwifft with custom class

NeomMob opened this issue · comments

I am using Dwifft with a custom class and I am not getting the expected result.
It seems that the issue is because some of the variables of the class are changed.
In order to avoid that I wanted to exclude these unwated property. I hence added the following function but Dwiff nevel calls it. How Dwiff test equality between two objects?

static func == (lhs: Slide, rhs: Slide) -> Bool {
    return lhs.markdown == rhs.markdown
}