Consider two Swift enums:
enum Foo: Int {
case bar
}
@objc enum Baz: Int {
case qux
}
If I were to print each case of these enums, I would expect the same result. Instead, I see something unexpected:
print(Foo.bar) // "bar\n"
print(Baz.qux) // "Baz\n"
Why does printing a case of an @objc enum print the enum name, while printing the case of a pure Swift enum print the actual case name? Does adding @objc change the debug description of the enum?
rawValuerather than the name of the enum...