extension UIImageView {
func setImages(url:String){
let activityInd = UIActivityIndicatorView()
activityInd.center = CGPoint(x: self.frame.size.width / 2,
y: self.frame.size.height / 2)
activityInd.color = UIColor.red
self.addSubview(activityInd)
activityInd.startAnimating()
self.kf.setImage(with: URL(string: url), placeholder: #imageLiteral(resourceName: "user-icn"), options: nil, progressBlock: nil) { (img, err, cache, url) in
activityInd.stopAnimating()
}
}
}