Make UIImage Corners Rounded

This code snipped demonstrates how to: Make UIImage corners rounded Add a boarder around UIImage Change UIImage border colour import UIKit class ViewController: UIViewController { @IBOutlet weak var profile_picture: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Make image borders rounded profile_picture.layer.cornerRadius = 10 profile_picture.clipsToBounds = true profile_picture.layer.borderWidth = 3 profile_picture.layer.borderColor = UIColor.white.cgColor } override func … Continue reading Make UIImage Corners Rounded