I have a global variable like:
let myVar:Bool = true
I want to get the actual name (as String
) of the variable. Something like:
print(myVar.name)
should print the myVar
string.
Note: I found this solution but it does not deal with global variables. It will only work with classes & structs it seems.
Thanks!