Currently i am integrating SDWebImage in my project by following below things
1)#import \"UIButton+WebCache.h\"
2)[button setImageWithURL:url placeholderImag
For swift 5
//pass true for showing indicator View
self.imageView.sd_setShowActivityIndicatorView(true)
//give style value
self.imageView.sd_setIndicatorStyle(UIActivityIndicatorView.Style.gray)
//Set your image as you are want to do
self.imageView.sd_setImage(with: URL(string: self.imageUrl), placeholderImage: UIImage())