I have been struggling resizing an image. Basically I have stumpled upon: How to scale down a UIImage and make it crispy / sharp at the same time instead of blurry?
If you are using kingfisher lib for loading images in you project and want to resize it here is the way:
let imageUrl = URL(string: "your image url")
//Size refer to the size which you want to resize your original image
let size = CGSize(width: 60, height: 60)
let processImage = ResizingImageProcessor(targetSize: size, contentMode: .aspectFit)
cell.courseTitleImage.kf.setImage(with: imageUrl! , placeholder: UIImage(named: "placeholder"), options: [.transition(ImageTransition.fade(1)), .processor(processImage)], progressBlock: nil, completionHandler: nil)
OR
Resize Local Image:- you can refer to the answer of @Christoph R