How can I use a Swift enum as a Dictionary key? (Conforming to Equatable)
Info on Enumerations as dictionary keys: From the Swift book: Enumeration member values without associated values (as described in Enumerations) are also hashable by default. However, your Enumeration does have a member value with an associated value, so Hashable conformance has to be added manually by you. Solution The problem with your implementation, is that … Read more