Gradient Animation on UIImageView in Swift
- Just drag & drop the LoadImageView.swift to your project.
- Add UIImageView on your StoryBoard
- Select in the utilities panel : Custom Class : LoadImageView
let img = LoadingImageView(image: UIImage(named: "bulb"))