diff --git a/Source/UIImageExtension.swift b/Source/UIImageExtension.swift index 3ba0956..9b9febc 100644 --- a/Source/UIImageExtension.swift +++ b/Source/UIImageExtension.swift @@ -10,6 +10,7 @@ extension UIImage { class func imageWithData(data: NSData, size: CGSize) -> UIImage? { return UIImage(data: data)?.resize(size) } + class func sizeForImageData(data: NSData) -> CGSize? { return UIImage(data: data)?.size }