Skip to content

iOS UIImageView+loadFromUrl.swift class for load image from URL & Add image to cache if need.

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

README.md

UIImageView-loadFromUrl

iOS UIImageView+loadFromUrl.swift class for load image from URL & Add image to cache if need.

Platform Language License

Overview

  • Manual drag & drop the class
  • Swift 5.0 above
  • Xcode 11 above
  • Download image from URL
  • Download image from URL & added to cache
  • Default image option
let url:URL? = URL(string: "https://raw.githubusercontent.com/Sivabalaa/images/master/iOSTreeLogo.png")

Use the below code to get image from URL

imageView.setImage(from: url, placeholder: UIImage(named: "sample"))

or

imageView.setImage(from: url)

If you loading multiple image in UITableview or in UICollectionView

Use the below code to get image from URL & added to cache

imageView.setImage(from: url, isCache: true)

or

imageView.setImage(from: url, placeholder: UIImage(named: "sample"), isCache: true)

About

iOS UIImageView+loadFromUrl.swift class for load image from URL & Add image to cache if need.

Topics

Resources

Releases

No releases published

Languages

You can’t perform that action at this time.