This repository has been archived by the owner on May 3, 2021. It is now read-only.
DFImageManager 0.6.0
Overview
DFImageManager 0.6.0
focuses on consistency and performance. It features some minor improvements in the API and some major improvements in the implementation. The main changes were made to the DFImageManager class that was made much more approachable.
Changes
Major
- #38 DFImageRequest and DFImageRequestOptions are now immutable, options are created using builder
- #37 Improve DFImageTaskCompletion completion block. Remove dictionary with DFImageInfo* keys; error (NSError *) is now a separate argument; add response (DFImageResponse) and completedTask (DFImageTask) parameters. It's now easier to discover all options.
- #34 DFImageManager implementation is now much more approachable, and also more robust and performant (request execution management is moved from DFImageManager to a separate private class).
- #32 DFImageTask now changes state synchronously on the callers thread (when you resume or cancel task). As a "side effect" DFImageManager invalidation is now thread safe.
- #19 NSProgress is now used instead of blocks. Includes support for implicit progress composition, cancellation using progress objects, and more.
Minor
- #39 Improve DFCompositeImageManager dispatch logic for preheating requests
- #36 Multiple preheating performance improvements. DFImageManager now automatically removes obsolete preheating tasks without even resuming them.
- #35 UI classes now accept nullable resources and requests (more convenient)
- #33 BUGFIX: Remove setNeedsUpdateConstrains call from DFImageView
- #30 UIImageView df_setImage: family of methods now return DFImageTask
- Make nullability annotations explicit; fixe nullability annotations in couple of places
- Other minor improvements that include consistent dot-syntax usage, making some properties copying and more
- Remove deprecated methods