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:
2.1m questions
2.1m answers
60 comments
57.0k users