I am looking to get the name of function in swift.
I basically want something like
__FUNCTION__
but from a different function e.g.
func do () {
code etc
}
func doStuff () {
var funcName = do().name
}
the above would be perfect.
Any ideas?
Aucun commentaire:
Enregistrer un commentaire