Skip to content

Instantly share code, notes, and snippets.

@seivan
Created June 7, 2016 21:26
Show Gist options
  • Save seivan/df1e2af4878aa550ddeb9b0c564870f0 to your computer and use it in GitHub Desktop.
Save seivan/df1e2af4878aa550ddeb9b0c564870f0 to your computer and use it in GitHub Desktop.
func crap<T>(arg:T) {
print(String(T))
print(String(arg))
print(Mirror(reflecting: arg))
print(Mirror(reflecting: arg).subjectType)
print(String(Mirror(reflecting: arg)))
print(String(Mirror(reflecting: arg).subjectType))
}
crap(UIColor.redColor().CGColor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment