Skip to content

Commit

Permalink
Prepare for v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Oct 9, 2015
1 parent 1b0be37 commit 1d7bab3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
12 changes: 1 addition & 11 deletions Example/NukePlayground.playground/contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let task = Nuke.taskWithURL(URL) {

//: Create and resume `ImageTask` with `ImageRequest`
var request = ImageRequest(URL: NSURL(string: "https://farm4.staticflickr.com/3892/14940786229_5b2b48e96c_z_d.jpg")!)
request.targetSize = CGSize(width: 100.0, height: 100.0) // Set target size in pixels
request.targetSize = CGSize(width: 200.0, height: 200.0) // Set target size in pixels
request.contentMode = .AspectFill

Nuke.taskWithRequest(request) { response in
Expand All @@ -37,14 +37,4 @@ Nuke.taskWithRequest(request2) {
let image = $0.image
}.resume()

//: Create `ImageManager` with custom `ImageManagerConfiguration` and set it as shared manager

let sessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()
let dataLoader = ImageDataLoader(sessionConfiguration: sessionConfiguration)
let cache = ImageMemoryCache()
let decoder = ImageDecoder()

ImageManager.shared = ImageManager(configuration: ImageManagerConfiguration(dataLoader: dataLoader, cache: cache, decoder: decoder))

XCPSetExecutionShouldContinueIndefinitely()

7 changes: 6 additions & 1 deletion Example/NukePlayground.playground/timeline.xctimeline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version = "3.0">
<TimelineItems>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=7&amp;CharacterRangeLoc=739&amp;EndingColumnNumber=12&amp;EndingLineNumber=42&amp;StartingColumnNumber=5&amp;StartingLineNumber=42&amp;Timestamp=465661861.776954"
documentLocation = "#CharacterRangeLen=7&amp;CharacterRangeLoc=739&amp;EndingColumnNumber=12&amp;EndingLineNumber=37&amp;StartingColumnNumber=5&amp;StartingLineNumber=37&amp;Timestamp=466091212.747539"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
Expand Down Expand Up @@ -125,5 +125,10 @@
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
<LoggerValueHistoryTimelineItem
documentLocation = "#CharacterRangeLen=5&amp;CharacterRangeLoc=610&amp;EndingColumnNumber=18&amp;EndingLineNumber=16&amp;StartingColumnNumber=13&amp;StartingLineNumber=16&amp;Timestamp=466091216.581088"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
</TimelineItems>
</Timeline>
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.4.0"
s.version = "0.5.0"
s.summary = "Advanced Swift framework for loading and caching images"

s.homepage = "https://github.com/kean/Nuke"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Nuke.startPreheatingImages(requests: requests)
Nuke.stopPreheatingImages(requests: requests)
```

#### Automate preheating
#### Automate Preheating

```swift
let preheater = ImagePreheatingControllerForCollectionView(collectionView: <#collectionView#>)
Expand Down

0 comments on commit 1d7bab3

Please sign in to comment.