Dwifft
Dwifft copied to clipboard
Using Dwifft with custom class
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
}