DGImageView

Asynchronous image downloader with cache. Supports gif, memory cache, disk cache features.

Installation

Xcode > File > Add Packages > https://github.com/donggyushin/DGImageView

Usage

# Set image from url
let imageView = DGImageView(frame: frame)
imageView.setImage(url: "https://raw.githubusercontent.com/SDWebImage/SDWebImage/master/SDWebImage_logo.png")

# Set gif from url 
imageView.setGif(url: "https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/5eeea355389655.59822ff824b72.gif")

# Set default image
imageView.setDefaultImage(image)

GitHub

View Github