Print Current Module Name in Swift
For the not-so-pretty but currently working way, try:
let object = NSStringFromClass(MyClass) as NSString
let module = object.componentsSeparatedByString(".").first!
This doesn't seem to work for Foundation/UIKit etc objects though