If an Objective-C function returns a status value with enum, is there a way to get the string of the enum in Swift?
The same question is asked of native Swift enumeration cases, but in this question I am specifically working with @objc enum
Objective-C enums in Swift:
If I do debugPrint("\(status)")
or print("\(status)")
I just get the name of the enum instead of value.
If I do status.rawValue
, I get the int, but it doesn't mean much to interpret.