How do I make a UIImageView with rounded corners on a Swift iOS Playground? Inside it needs to be filled with a color.
let imageView = UIImageView(frame: CGRectMake(0, 0, 100, 100)) imageView.backgroundColor = UIColor.redColor() imageView.layer.cornerRadius = 8.0 imageView.clipsToBounds = true
Result:
1.4m articles
1.4m replys
5 comments
57.0k users