Skip to content

BoshiLee/WebImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Web Image View

Features

  • 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

Useage:

  1. Drag the UIImageView to your storyboard and set it to WebImageView.swift

  1. Load Image form URLRequest:
yourImageView.load(url: imageURL)
  1. 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.

Requirements:

  • Swift 3
  • iOS 10

Installation:

Drag WebImageView.swift to your XCode project.

Contact Me

Contact me with with email or linkedin

Other:

  • Please 🌟 this repo if you like it!

Releases

No releases published

Packages

No packages published

Languages