I\'m trying to print the name of the current class in Swift. More specifically, I\'d like achieve the following output:
myFunction() in ClassContainingTheFun
I think the following is what you want (in Swift 2.1 and up):
print("\(__FUNCTION__) in \(self.dynamicType)")