For enums with associated values, Swift doesn\'t provide the equality operator. So I implemented one to be able to compare two enums:
enum ExampleEnum{
Currently there is no way of achieving this without writing out all the cases, we can hope that it'll be possible in a later version.
If you really have a lot of cases and you don't want to write them all out, you can write a small function that generates the code automatically for you (I've been doing this just recently for something that wasn't possible to refactor)