UIImage
class UIImage : NSObject, NSSecureCoding
UIImage utility extension
-
Crop an image by size
Declaration
Swift
func cropToBounds(width: Double, height: Double) -> UIImageParameters
widthimage width
heightimage height
Return Value
a new
UIImageimage -
Resize an image by width
Declaration
Swift
func resizeWithWidth(width: CGFloat) -> UIImage?Parameters
widththe total image width
Return Value
a new
UIImageimage
View on GitHub
UIImage Extension Reference