iOS image download from URL & Cache
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
or
If you are loading multiple image in UITableview
or in UICollectionView
Use the below code to get image from URL & added to cache
or
Download the file here
License
UIImageView+loadFromUrl is distributed under the MIT license .
Let's grow together 🌱
Cheers 🍻