The latest release of Swift 2.2 removes _stdlib_getDemangledTypeName()
.
What are my options to replace this?
I'm currently using in debug messages like this:
let debugStr = "\(_stdlib_getDemangledTypeName(self)) -> \(self.versionString) (\(self.versionInfo))"
You can get pretty descriptions of type names through the String
initialiser. This should suffice as a replacement for _stdlib_getDemangledTypeName
.
Example:
String(self.dynamicType)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With