Kingfisher fetches images over the network, stores them in memory and on disk, and binds them to UIKit, AppKit, and SwiftUI views. It includes processors, prefetching, and loading placeholders.
Overview
Kingfisher is a pure-Swift library that downloads images asynchronously and caches them for reuse in Apple-platform apps. Setting an image from a URL typically hits the network once, then serves later requests from cache.
It supports URLSession networking or local data, cancelable downloads, and optional prefetching to warm the cache ahead of display. A hybrid memory-and-disk cache offers configurable size limits and expiration, with async disk lookups to avoid blocking callers.
Built-in processors and filters can resize, crop, round corners, and apply other transforms during load. UI extensions cover common views and controls, with placeholders, indicators, and transition animations while content arrives.
You can use the downloader, cache, and processors separately or chain configuration through extension APIs or builder-style calls. SwiftUI wrappers mirror the UIKit workflow, and the project documents support for Live Photo loading and Low Data Mode behavior.
Key features
- Async download with memory and disk cache
- UIImageView and SwiftUI image helpers
- Image processors and format plugins
- Prefetching and task cancellation
- Custom placeholders and loading indicators
- Configurable cache expiration and limits
- Method-chaining KF builder API
- Live Photo load and cache support
Use cases
- Feed and gallery remote thumbnails
- Avatar and product image loading
- List scrolling with cached art
- Transformed images on display
- SwiftUI screens with URL-backed images