Nessuna descrizione

Wei Wang 04d24dd737 Merge pull request #446 from sahandnayebaziz/patch-1 9 anni fa
Demo 95691f96a6 Fully adopt to namespacing 9 anni fa
Kingfisher.xcodeproj d828a54e60 Wrap UIImage extension to kf namespacing 9 anni fa
Kingfisher.xcworkspace bd40fca692 Rename project name 10 anni fa
Pods c0b11bb572 Update to pod 1.0.1 9 anni fa
Sources 902780117b Merge pull request #442 from xsxsxszs/Open_AnimatedImageView 9 anni fa
Tests 95691f96a6 Fully adopt to namespacing 9 anni fa
fastlane a670632ce0 Update extract change log action 9 anni fa
images 1869184c7b Protocol indicator 9 anni fa
.gitignore 52e63ac8ad Ignore local gem 9 anni fa
.swift-version a100f4bddd Fix for pods lint 9 anni fa
.travis.yml 9fd2f37e62 Revert xcpretty and longer sleep 9 anni fa
CHANGELOG.md 7fdfda66cf Bump version to 3.0.1 9 anni fa
Kingfisher.podspec 7fdfda66cf Bump version to 3.0.1 9 anni fa
Kingfisher.swift b911efce5b change the implement way of namespace extension 9 anni fa
LICENSE 6491b7996a Initial commit 11 anni fa
Package.swift 3c5127eda2 SPM support 10 anni fa
Podfile 433c0fcb23 Update target name from OSX to macOS 9 anni fa
Podfile.lock c0b11bb572 Update to pod 1.0.1 9 anni fa
README.md 4b5470e5a0 Improved grammar 9 anni fa
codecov.yml b698e8d622 Add codecov.yml 9 anni fa

README.md

Kingfisher

codebeat badge

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.

Features

  • Asynchronous image downloading and caching.
  • URLSession-based networking. Basic image processors and filters supplied.
  • Multiple-layer cache for both memory and disk.
  • Cancelable downloading and processing tasks to improve performance.
  • Independent components. Use the downloader or caching system separately as you need.
  • Prefetching images and showing them from cache later when necessary.
  • Extensions for UIImageView, NSImage and UIButton to directly set an image from a URL.
  • Built-in transition animation when setting images.
  • Extensible image processing and image format support.

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.

Requirements

  • iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
  • Swift 3 (Kingfisher 3.x), Swift 2.3 (Kingfisher 2.x)

Main development of Kingfisher will support Swift 3. Only critical bug fixes will be made 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.

Next Steps

Read the Kingfisher wiki.

  • Follow the Installation Guide to integrate Kingfisher into your project.
  • Curious about what Kingfisher could do and how would it look like when used in your project? See our Cheat Sheet page for useful code snippets. If you are already familiar with Kingfisher, you may learn new tricks to improve the way you use Kingfisher!
  • Lastly, please remember to read the full API Reference whenever you may need a more detailed reference.

Other

Future of Kingfisher

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.

About the logo

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?

Contact

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.

License

Kingfisher is released under the MIT license. See LICENSE for details.