TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2016 |
SPMSupports SPM | ✗ |
Maintained by Jean Vinge.
Kingfisher is a lightweight, pure-Swift library for downloading and caching images from the web. This project is heavily inspired by the popular SDWebImage. It provides you a chance to use a pure-Swift alternative in your next app.
URLSession
-based networking. Basic image processors and filters supplied.UIImageView
, NSImage
and UIButton
to directly set an image from a URL.The simplest use-case is setting an image to an image view with the UIImageView
extension:
let url = URL(string: "url_of_your_image")
imageView.kf.setImage(with: url)
Kingfisher will download the image from url
, send it to both the memory cache and the disk cache, and display it in imageView
. When you use the same code later, the image will be retrieved from cache and shown immediately.
Main development of Kingfisher will support Swift 3. Only critical bug fixes will be made for Kingfisher 2.x.
Kingfisher 3.0 Migration Guide - If you are upgrading to Kingfisher 3.x from an earlier version, please read this for more information.
We prepared a wiki page. You can find tons of useful things there.
I want to keep Kingfisher lightweight. This framework will focus on providing a simple solution for downloading and caching images. This doesn’t mean the framework can’t be improved. Kingfisher is far from perfect, so necessary and useful updates will be made to make it better.
The logo of Kingfisher is inspired by Tangram (七巧板), a dissection puzzle consisting of seven flat shapes from China. I believe she’s a kingfisher bird instead of a swift, but someone insists that she is a pigeon. I guess I should give her a name. Hi, guys, do you have any suggestions?
Follow and contact me on Twitter or Sina Weibo. If you find an issue, just open a ticket. Pull requests are warmly welcome as well.
Kingfisher is released under the MIT license. See LICENSE for details.