I\'m trying to make a UIImageView with round corners, so I used [imageView.layer setCornerRadius:5.0f]; it works but not perfectly.
If you look closely, you can see the
UIImageView doesn't clip to bounds by default. So while the corner radius is applied its still drawing outside of its designated area.
UIImageView
objc:
[imageView setClipsToBounds:YES];
swift:
imageView.clipsToBounds = true