Asynchronous image downloading and caching for iOS, macOS, tvOS, watchOS and visionOS
open sourceMITfree
SDWebImage is an Objective-C and Swift library for Apple platforms that downloads images asynchronously and caches them in memory and on disk, with automatic expiry. It adds web image loading to UIImageView, UIButton and MKAnnotationView, decompresses images in the background so scrolling doesn't drop frames, never downloads the same URL twice or retries a bad one, and never blocks the main thread. It handles progressive and animated images (GIF, APNG), thumbnail decoding for large images, transformations after download, loading indicators and transitions, and custom caches and loaders. Plugins add formats such as WebP, HEIC, AVIF, JPEG XL, SVG and PDF. It installs with CocoaPods, Carthage or Swift Package Manager.
Problems it solves
- load images from URLs into a table view in my iOS app without stuttering
- cache downloaded images on disk in an iPhone app
- show animated GIFs in my iOS app
- display WebP images on iOS
Features
- asynchronous image downloader
- memory and disk cache with expiry
- UIImageView, UIButton and MKAnnotationView categories
- background decompression
- progressive and animated image loading
- thumbnail decoding
- image transformations
- coder plugins for WebP, HEIC, AVIF, JPEG XL and SVG
Capabilities
| Takes plugins | plan not known |
|---|---|
| Has official SDKs | plan not known |