Skip to content

Instantly share code, notes, and snippets.

@alexkent
Created November 5, 2015 16:22
Show Gist options
  • Save alexkent/57a118024a68104ef0d5 to your computer and use it in GitHub Desktop.
Save alexkent/57a118024a68104ef0d5 to your computer and use it in GitHub Desktop.
extension NSObject {
func typeNameWithOutModuleName() -> String {
var typeNameHeirarchy = NSStringFromClass(self.dynamicType).componentsSeparatedByString(".")
typeNameHeirarchy.removeFirst()
return typeNameHeirarchy.joinWithSeparator(".")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment