I am aware of this question regarding how we can get a readable class name of an objective-c class in Swift.
What I want to achieve is getting the readable class name of
The reason you get "Bar.Foo"
is because swift is a namespace language. I'm assuming the application you were running this in was named Bar. Hence you may get your class name using the following:
let nameSpaceClassName = NSStringFromClass(Foo)
let className = nameSpaceClassName.componentsSeparatedByString(".").last! as String