I display the data in a tableview
In Content Mode
of image, I choose Aspect Fit
But I got something like this
with background.red
How to remove empty space around image?
I tried to find some answers, but unsuccessfully
Please help
When i use aspectFill
I use this code to show image from url
I use Kingfisher
cell.image_of_new.kf.indicatorType = .activity
cell.image_of_new.kf.setImage(
with: url,
placeholder: UIImage(named: "placeholderImage"),
options: [
.scaleFactor(UIScreen.main.scale),
.transition(.fade(1)),
.cacheOriginalImage
])
{
result in
self.tableview.beginUpdates()
self.tableview.endUpdates()
}