Skip to content

Commit

Permalink
Fix usage in Readme as well
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Oct 22, 2015
1 parent 39db9b3 commit d885dcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Kingfisher will search in cache (both memory and disk) first with the URL, if no
```swift
imageView.kf_setImageWithURL(NSURL(string: "your_image_url")!,
placeholderImage: nil,
optionsInfo: [.Options: KingfisherOptions.ForceRefresh])
optionsInfo: [.Options(KingfisherOptions.ForceRefresh))
```

There are also other options to control the cache level, downloading priority, etc. Take some other examples:
Expand All @@ -171,7 +171,7 @@ let myCache = ImageCache(name: "my_cache")

imageView.kf_setImageWithURL(NSURL(string: "your_image_url")!,
placeholderImage: nil,
optionsInfo: [.TargetCache: myCache])
optionsInfo: [.TargetCache(myCache))
```

This is useful if you want to use a specified cache for some reasons.
Expand All @@ -181,7 +181,7 @@ 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)])
optionsInfo: [.Transition(ImageTransition.Fade(1)))
```

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

0 comments on commit d885dcb

Please sign in to comment.