In other languages, I am able to get current function's name using some kind of so-called reflection API. Does Swift provide similar API?
Is it possible to get current executing function's name?
Where do you want to display ?
Here is a solution to display in a Label..
- Create a label in the View
@IBOutlet weak var label : UILabel!
In the function you for which you want to display function name:
label.text = #function
Hope that helps