Returns a Boolean value indicating whether two values are equal.
- watchOS 6.0+
- Xcode 11.0+
A value to compare.
Another value to compare.
true if the two items are equal, or
false if they are not equal.
Objects implement this method by calling
is on the
lhs parameter. Subclasses of
NSObject can customize
Equatable conformance by overriding
is. If two objects are equal, they must have the same hash value, so if you override
is, make sure you also override the