GitHub - folio-sec/ImagePipeline: Folio Image Pipeline is an image loading and c...
source link: https://github.com/folio-sec/ImagePipeline
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
ImagePipeline
Folio Image Pipeline is an image loading and caching framework for iOS clients
Usage
let imagePipeline = ImagePipeline() imagePipeline.shared.load(/* image URL */, into: /* image view */, transition: .fadeIn /* default is `.none`*/, defaultImage: ..., failureImage: ...)
Example
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) as! Cell ImagePipeline.shared.load(urls[indexPath.row % 200], into: cell.imageView, transition: .fadeIn, defaultImage: UIImage(named: "loading")!, failureImage: UIImage(named: "failed")!) return cell }
Supported content types
- ✅ PNG
- ✅ JPEG
- ✅ GIF
- ✅ WebP
Recommend
-
43
Folio Dynamic Form Built With React & CSS Grid layout Overview Folio
-
28
readme.md Folio 2019 Setup Download Node.js. Run this followed commands:
-
10
iPad Accessory Reviews Logitech’s New Folio Touch is an Interesting Alternative to Apple’s Magic Keyboard
-
10
Save $50 on the brilliant Smart Keyboard Folio for iPad Pro
-
6
The folio pull-request pushback LWN.net needs you!Without subscribers, LWN would simply not exist. Please consider signing up for a subscription and helping...
-
1
Samsung's smaller S22 model hasn't gotten as much love so far, but it definitely deserves it. If you've grabbed yourself the brilliant little Samsung Galaxy S22, cover it up in the best wallet and folio cases to keep it in mint condition for...
-
2
Samsung Galaxy Z Fold 3 5G includes an S Pen Folio Case $349 off (2022 low)
-
-16
Best wallet & folio cases for Samsung Galaxy S22 Ultra 2022 By Courtney Lynch published about 22 hours ag...
-
5
Hands on: The HP Elite Dragonfly Folio is perfect for working from home HP has announced the newest member of its Elite Dragonfly family, the Elite Dragonfly Folio. It’s the thi...
-
0
A Circular image loading and caching library for Android with circular Progressbar. Download Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories: al...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK