Skip to content

Commit

Permalink
Prepare for version 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Sep 20, 2015
1 parent abd53aa commit 046c4a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Nuke.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Nuke"
s.version = "0.2.2"
s.version = "0.3.0"
s.summary = "Advanced Swift framework for loading and caching images"

s.homepage = "https://github.com/kean/Nuke"
Expand Down
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Advanced pure Swift framework for loading, caching, processing, displaying and preheating images. It uses latest advancements in iOS SDK and doesn't reinvent existing technologies.

Nuke is a [pipeline](#h_design) that loads images using pluggable components which can be injected in runtime.
Nuke is a [pipeline](#h_design) that loads images using multiple dependencies which can be injected in runtime.

```swift
Nuke.taskWithURL(URL) {
Expand Down Expand Up @@ -45,7 +45,6 @@ Nuke.taskWithURL(URL) {
- Resize loaded images to [fit displayed size](https://developer.apple.com/library/ios/qa/qa1708/_index.html)

##### Advanced
- Image tasks are promises
- Image decoder composition
- Image filter composition
- Customize different parts of the framework using dependency injection
Expand Down Expand Up @@ -97,20 +96,12 @@ Nuke.taskWithRequest(request) { response in
let task = Nuke.taskWithURL(imageURL).resume()
let progress = task.progress // Track progress using NSProgress
let state = task.state // Track task state
task.completion { // Add completions, even for completed task
let image $0.image
}
task.cancel() // Cancel image task
```

#### Image Task as Promise

```swift
// Add multiple completions that get called even if task is completed
let task = Nuke.taskWithURL(imageURL).completion {
let image = $0.image
}.completion {
let image = $0.image
}.resume()
```

#### UICollectionView

```swift
Expand Down

0 comments on commit 046c4a9

Please sign in to comment.