I have the following problem: I get an instance of a class passed and want to know the name of the class of this instance. How to get this?
If you are looking how get classname in Swift you can use reflect to get information about object.
let tokens = split(reflect(self).summary, { $0 == "." }) if let typeName = tokens.last { println(typeName) }