UIImage-Resize.swift
Use this file to your extension for Resize the image in iOS
Overview
- Manual drag & drop the class.
- Swift 5.0 above.
- Xcode 11 above.
- Resize/Crop the image.
- You can mention
Width
&Height
of the image.
image.resize(to: CGSize(width: 200, height: 200))
In many cases you need to upload the image to backend with same quality with low dimension you can use the above class and mention the sizes.
License
UIImage+Resize is distributed under the MIT license .