So I'm loading an image into a UIImageView, but the image view always leaves significant whitespace on either side. It looks like this:
Notice the white on either side of the image. Here's the code to set the image:
cell.albumArt.sd_setImage(with: result.getImageURL())
The imageView is in the aspectFit setting. The constraints are:
- Image leading to super leading
- Image top to super top
- Image bottom to super bottom
- Text leading to image trailing
- Text top to image top
What's going on here? How can I remove the whitespace properly?