Reading List

Equality in Swift: NSObject, Subclasses, and Existentials from Michael Tsai RSS feed.

Equality in Swift: NSObject, Subclasses, and Existentials

Mark Newton: Conformance to the Equatable protocol seems pretty straightforward. You simply override the == function.[…]This works great for objects like structs, or classes with no superclass. However, we can run into problems with the == function if we’re dealing with NSObject subclasses. Jayesh Kawli (via Marcin Krzyzanowski): And now if you try to do […]