FGWebImage
Introduction
A light-weight framework of async loading image like SDWebImage in Swift.
- asyn image loading
- light-weight
- build in Swift
Required
- Swift 4.x
- Xcode 9.x
- iOS 8.x
Installtion
Cocoapods
pod 'FGWebImage' , '~>2.0'
and import
import FGWebImage
Manual
Drag the FGWebImage
folder into your peroject.
Usage
let url = "http://upload-images.jianshu.io/upload_images/937405-e91a649f7a7df2a0.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"
imv.fg_setImageWithUrl(url, placeHolderImage)