I\'m at a bit of a loss. I\'ve used the layer property of UIView to round the corners of multiple elements in my app. However, this one UIImageView is simply not complying.
Also worth noting that
i.e if you have this
theImageView.contentMode = .scaleAspectFit
and
theImageView.layer.cornerRadius = (theImageView.frame.size.height)/2
theImageView.clipsToBounds = true
or
theImageView.layer.masksToBounds = true
It won't work. you will have to get rid of aspectFit code
//theImageView.contentMode = .scaleAspectFit