I did try with Cocapods "Kingfisher" but cannot figure out how to set an animating placeholder image while the image is being downloaded.
here is the Below code I tried with kingfisher Pod
[![image Loader](https://i.stack.imgur.com/pYBAT.gif)](https://i.stack.imgur.com/pYBAT.gif)

```
    func configureCell(category:Category){
        if let url = URL(string: category.imgUrl){
            let placeholder = UIImage(named: "placeholder")
            let options : KingfisherOptionsInfo = [KingfisherOptionsInfoItem.transition(.fade(0.1))]
            categoryImg.kf.indicatorType = .activity
            categoryImg.kf.setImage(with: url, placeholder: placeholder, options: options)
        }

    }

```