Instead of extending Equatable, you can just have RawValue and compare it: if A.rawValue != B.rawValue { ... }
Topic:
Programming Languages
SubTopic:
Swift
Tags: