Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which image caching library for iOS?

I am building a photo album app and find a few image caching libraries, namely:

  • JMImageCache
  • HJCache
  • SDWebImage

What one you'd recommend (or other libs not on the list)? I am looking for:

  • Efficiency
  • Minimum effort in terms of garbage collection
  • Support for Blocks preferred

Thanks

like image 424
ohho Avatar asked Nov 08 '11 10:11

ohho


People also ask

What is SDWebImage in iOS?

SDWebImage Public. Asynchronous image downloader with cache support as a UIImageView category.

Does AsyncImage cache Swiftui?

Downloading and caching images is a common task when building Swift apps. The Swift standard library provides the AsyncImage component providing a caching implementation using URLCache.

What is caching in iOS?

Content caching speeds up downloading of software distributed by Apple and data that users store in iCloud by saving content that local Mac computers, iOS and iPadOS devices, and Apple TV devices have already downloaded.

What is the use of Kingfisher?

Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web. It provides you a chance to use a pure-Swift way to work with remote images in your next app.


1 Answers

Personally, I think SDWebImage is the best because it is an absolute no-effort solution, and provides the simplest mechanism for cache handling as it is simply an extension of the UIImageView class.

like image 176
Alex Coplan Avatar answered Sep 18 '22 14:09

Alex Coplan