Skip to content

Commit

Permalink
Bump version to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Sep 19, 2015
1 parent fb54f9a commit 9a2f30b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Kingfisher.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Kingfisher"
s.version = "1.5.0"
s.version = "1.6.0"
s.summary = "A lightweight and pure Swift implemented library for downloading and cacheing image from the web."

s.description = <<-DESC
Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Kingfisher', '~> 1.5'
pod 'Kingfisher', '~> 1.6'
```

Then, run the following command:
Expand All @@ -73,7 +73,7 @@ $ brew install carthage
To integrate Kingfisher into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "onevcat/Kingfisher" >= 1.5
github "onevcat/Kingfisher" >= 1.6
```

Then, run the following command to build the Kingfisher framework:
Expand Down Expand Up @@ -162,7 +162,9 @@ imageView.kf_setImageWithURL(NSURL(string: "your_image_url")!,
optionsInfo: [.Options: KingfisherOptions.ForceRefresh])
```

There are also other options to control the cache level, downloading priority, etc. Take another example, if you need to cache the downloaded image to a customized cache instead of the default one:
There are also other options to control the cache level, downloading priority, etc. Take some other examples:

If you need to cache the downloaded image to a customized cache instead of the default one:

```swift
let myCache = ImageCache(name: "my_cache")
Expand All @@ -172,7 +174,17 @@ imageView.kf_setImageWithURL(NSURL(string: "your_image_url")!,
optionsInfo: [.TargetCache: myCache])
```

This is useful if you want to use a specified cache for some reasons. For more information about options, please see the `KingfisherOptionsInfo` in the [documentation](http://cocoadocs.org/docsets/Kingfisher/index.html).
This is useful if you want to use a specified cache for some reasons.

And if you need to fade in the image to image view during 1 second:

```
imageView.kf_setImageWithURL(NSURL(string: "your_image_url")!,
placeholderImage: nil,
optionsInfo: [.Transition: ImageTransition.Fade(1)])
```

For more information about options, please see the `KingfisherOptionsInfo` in the [documentation](http://cocoadocs.org/docsets/Kingfisher/index.html).

#### Callbacks

Expand Down

0 comments on commit 9a2f30b

Please sign in to comment.