import UIKit extension UIImageView{ func setCornerRadiusToCircle(){ self.layer.cornerRadius = self.bounds.height/2 } }