I hereby claim:
- I am naturaln0va on github.
- I am naturaln0va (https://keybase.io/naturaln0va) on keybase.
- I have a public key ASCs6I_MuMzLgV4Q1IGCeIVD1dqYmhRAA6pnK_4ewQ2T_Ao
To claim this, I am signing this object:
extension UIView | |
{ | |
func imageByCapturing() -> UIImage | |
{ | |
UIGraphicsBeginImageContextWithOptions(self.bounds.size, self.opaque, 0.0) | |
self.drawViewHierarchyInRect(self.frame, afterScreenUpdates: true) | |
let image = UIGraphicsGetImageFromCurrentImageContext() | |
import UIKit | |
extension UIColor | |
{ | |
func hexString() -> String? | |
{ | |
var redValue: CGFloat = 0 | |
var greenValue: CGFloat = 0 | |
var blueValue: CGFloat = 0 | |
var alphaValue: CGFloat = 0 |
import CoreLocation | |
func locationVCardURLFromCoordinate(coordinate: CLLocationCoordinate2D) -> NSURL? | |
{ | |
guard let cachesPathString = NSSearchPathForDirectoriesInDomains(.CachesDirectory, .UserDomainMask, true).first else { | |
print("Error: couldn't find the caches directory.") | |
return nil | |
} | |
I hereby claim:
To claim this, I am signing this object: