Returns a Boolean value indicating whether two values are equal.
- macOS 10.15+
- Xcode 11.0+
A value to compare.
Another value to compare.
NSObject implements this by calling
lhs. 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