Say I have an arbitrary Objective-C, NSObject subclass (from a library) that I want to use as a dictionary key.
If I try to insert another object into the dictionary as a key, it overwrites that first object. Seemingly it's deciding the keys are equal.
How does the Swift dictionary decide this? The hash
method on the Objective-C NSObject subclass? Or is it isEqualTo
?