Can any one help me...! I just want to set a corner radius to an image and also the image has to be fit in AspectFit scale.
If I give scaleToFill mode I can use the below code and its working fine. but the image is been Stretched.
self.productImg.layer.cornerRadius = 7
self.productImg.clipsToBounds = true
But when giving the scale to AspectFit it is showing as shown in below image.
The green color showing is the image View, and within that the image is setting to aspectFit.
The Actual image
The Image when giving the aspectFit mode
i need the image as it is actually given and also it has to be with corner radius. So please any one give me solution to Resolve this.
Thanks in Advance...!