Skip to content

Instantly share code, notes, and snippets.

@shnhrrsn
Last active August 29, 2015 14:26
Show Gist options
  • Save shnhrrsn/6ab02e1d4f7f41a4408e to your computer and use it in GitHub Desktop.
Save shnhrrsn/6ab02e1d4f7f41a4408e to your computer and use it in GitHub Desktop.
extension CGRect: DebugPrintable {
var debugDescription: String {
return NSStringFromCGRect(self)
}
}
extension CGSize: DebugPrintable {
var debugDescription: String {
return NSStringFromCGSize(self)
}
}
extension CGPoint: DebugPrintable {
var debugDescription: String {
return NSStringFromCGPoint(self)
}
}
extension CGAffineTransform: DebugPrintable {
var debugDescription: String {
return NSStringFromCGAffineTransform(self)
}
}
extension UIEdgeInsets: DebugPrintable {
var debugDescription: String {
return NSStringFromUIEdgeInsets(self)
}
}
extension UIOffset: DebugPrintable {
var debugDescription: String {
return NSStringFromUIOffset(self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment