I am trying to round the corners on my UIImageView in tableViewCells, however, for some reason, they are clipped. I have tried this:
cell.characterThumbnail.layer.masksToBounds = true
cell.characterThumbnail.layer.cornerRadius = 15
and this is the result I get:

If I use the debug 3D viewer I get the frame is larger than I've set (I want 84 * 84 but it shows 84 * 110). Shown here:
Why are there different sizes? And why are the rounded corners clipped? I have to point out that the image in the UIImageView is downloaded from an URL for each thumbnail.
Any help on this matter is much appreciated. It has bugged me for a week lol.
P.S. I forgot to mention that I've read almost every single "rounded corner" question here on SO and elsewhere on the internet, but no mention of clipped corners. Also, I have thought about rounding the actual image before displaying it in the UIImageView, but that makes the tableView scrolling jerky.
Edit: Whole project at https://github.com/Aecasorg/WoWilvlChecker

