|
|
9 anni fa | |
|---|---|---|
| Demo | 9 anni fa | |
| Kingfisher.xcodeproj | 9 anni fa | |
| Kingfisher.xcworkspace | 10 anni fa | |
| Pods | 9 anni fa | |
| Sources | 9 anni fa | |
| Tests | 9 anni fa | |
| fastlane | 9 anni fa | |
| images | 9 anni fa | |
| .gitignore | 9 anni fa | |
| .swift-version | 9 anni fa | |
| .travis.yml | 9 anni fa | |
| CHANGELOG.md | 9 anni fa | |
| Kingfisher.podspec | 9 anni fa | |
| Kingfisher.swift | 9 anni fa | |
| LICENSE | 11 anni fa | |
| Package.swift | 10 anni fa | |
| Podfile | 9 anni fa | |
| Podfile.lock | 9 anni fa | |
| README.md | 9 anni fa | |
| codecov.yml | 9 anni fa |
Kingfisher is a lightweight and pure Swift implemented library for downloading and caching image from the web. This project is heavily inspired by the popular SDWebImage. And it provides you a chance to use pure Swift alternative in your next app.
URLSession based networking. Basic image processors and filters supplied.UIImageView, NSImage and UIButton for setting image from a URL directly.The simplest using case is setting an image to an image view with extension:
let url = URL(string: "url_of_your_image")
imageView.kf_setImage(with: url)
It will download the image from url, send it to both memory and disk cache, then show it in the imageView. When you use the same code later, the image will be retrieved from cache and show immediately.
The main development of Kingfisher is based on Swift 3. There will be only fatal issue fix update for Kingfisher 2.x.
If you are upgrading to Kingfisher 3.x from an earlier version, please read the Kingfisher 3.0 Migration Guide for more information.
Check wiki page of Kingfisher.
I want to keep Kingfisher slim. This framework will focus on providing a simple solution for image downloading and caching. But that does not mean the framework will not be improved. Kingfisher is far away from perfect, and necessary and useful features will be added later 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 suggestion?
Follow and contact me on Twitter or Sina Weibo. If you find an issue, just open a ticket on it. Pull requests are warmly welcome as well.
Kingfisher is released under the MIT license. See LICENSE for details.