Nuke v8.0-beta.2 Release Notes
Release Date: 2019-06-01 // almost 5 years ago-
โก๏ธ There quite a few important changes in this update. Probably the most important one is the addition of Deprecated.swift file which eases the transition from Nuke 7 to Nuke 8 which are now almost completely source compatible.
๐ > Naturally, this beta includes everything from Nuke 8.0-beta.1.
#250 Integrate
os_signpost
for profilingโ Integrate os_signpost logs for measuring performance. To enable the logs set
ImagePipeline.Configuration.isSignpostLoggingEnabled
(static property) totrue
before accessing theshared
pipeline.๐ With these logs, you have visibility into the image pipeline. For more information see WWDC 2018: Measuring Performance Using Logging which explains
os_signpost
in a great detail.#254 Improve Image Loading Extensions
โ Add
imageView.nk.setImage(with:)
family of methods as a replacement forNuke.loadImage(with:into:)
. The latter wasn't grammatically correct, that's the first.setImage(with:)
methods are also more conventional. So now in order to load an image and display it in a view you would simply do this:imageView.nk.setImage(with: URL(string: "http://example.com/image.jpeg")!)
๐ Future-proof Objective-C
ImageDisplaying
protocol by addingnuke_
prefixes to avoid clashes in Objective-C runtimeโ Add
WKInterfaceImage
support
Other Changes
- 0๏ธโฃ Enable processing deduplication by default โ #252
- โ Add
filterURL
options toImageRequestOptions
to filter unwanted query parameters when generating cache keys - #255 - โ Add Deprecated.swift file to ease transition from Nuke 7 to Nuke 8 - #253
- ๐ Implement image cost calculation in ImageCache for macOS โ #236
- โ Add a cleaner way to set
ImageTask
priority using a newpriority
property โ #251 - โ Add convenience
func decode(data: Data)
method with a defaultisFinal
argument toImageDecoding
protocol โ e3ca5e DataCache
will now automatically re-create its root directory if it was deleted underneath it