- Fix reused bug with UITableViewCell or UICollectionViewCell
- Loading web image with view animation
- Smooth loading web image
- Automatic cancel download task when create a new task
- Drag the UIImageView to your storyboard and set it to
WebImageView.swift
- Load Image form URLRequest:
yourImageView.load(url: imageURL)
- Optional Setting palceholder Image or animationOptions:
@IBOutlet weak var imageView: WebImageView! {
didSet {
imageView.configuration.placeholderImage = UIImage(named: "placeholderImage")
imageView.configuration.animationOptions = .transitionCrossDissolve
}
}
Check out animationOptions with UIViewAnimationOptions documents.
- Swift 3
- iOS 10
Drag WebImageView.swift
to your XCode project.
Contact me with with email or linkedin
- boshiLi, boshi.litw@gmail.com
- Please 🌟 this repo if you like it!