SDWebImage fetches remote images asynchronously, caches them in memory and on disk, and binds them to UIKit, AppKit, and related views. It supports many formats plus pluggable coders and loaders.
Overview
SDWebImage is an Objective-C and Swift library aimed at Apple platform apps that need network-backed images in lists, buttons, and map annotations. Categories on UIImageView, UIButton, and MKAnnotationView wire in download, cache lookup, and display without blocking the main thread.
A shared manager coordinates downloading, deduplicating URLs, backing off bad links, background decompression, progressive decoding, thumbnails for large assets, and optional transforms after fetch. Memory and disk caches expire entries automatically, and multiple cache backends can be plugged in.
The project splits optional pieces into separate modules: SwiftUI views built on the same core, coders for WebP, HEIC, AVIF, and similar formats, and integrations with other image stacks. visionOS builds are supported on recent releases alongside iOS, tvOS, watchOS, and macOS targets.
Distribution options include CocoaPods, Carthage, Swift Package Manager, and signed XCFramework binaries. The architecture is modular so teams can swap loaders, caches, and coders while keeping the same high-level API.
Key features
- Async download with URL deduplication
- Memory and disk image caches
- UIImageView and UIButton categories
- Progressive and animated image loading
- Background decompression
- Pluggable image format coders
- SwiftUI WebImage components
- Custom loaders and cache backends
Use cases
- Feed and gallery image cells
- Avatar and icon loading in lists
- Animated GIF and APNG display
- SwiftUI remote image views
- Reducing main-thread decode work