Kingfisher v7.0.0 Release Notes
Release Date: 2021-09-21 // over 2 years ago-
โ Add
- ๐ Rewrite SwiftUI support based on
@StateObject
instead of the old@ObservedObject
. It provides a stable and better data model backs the image rendering in SwiftUI. For this, Kingfisher SwiftUI supports from iOS 14 now. #1707 - Mark
ImageCache.retrieveImageInMemoryCache(forKey:options:)
asopen
to expose a correct override entry point to outside. #1703 - The
NSTextAttachment
extension method now accepts closure instead of a evaluated view. This allows delaying the passing in view to the timing which actually it is needed. #1746 - A
KFAnimatedImage
type to display a GIF image in SwiftUI. #1705 - โ Add a
progress
parameter to theKFImage
'splaceholder
closure. This allows you create a view based on the loading progress. #1707 - ๐ง Now
KFAnimatedImage
also supportsconfigure
modifier so you can set options to the underhoodAnimatedImageView
. #1768 - ๐ฆ Expose
AnimatedImageView
fields to allow consumers to observe GIF progress. #1789 @AttilaTheFun - ๐ An option to pass in an write option for writing data to the disk cache. This allows writing cache in a fine-tuned way, such as
.atomic
or.completeFileProtection
. #1793 @ignotusverum
๐ Fix
- ๐ Uses
UIGraphicsImageRenderer
on iOS and tvOS for better image drawing. #1706 - An issue that prevents Kingfisher compiling on mac Catalyst target in some certain of Xcode versions. #1692 @kvyatkovskys
- The
KF.retry(:_)
method now accepts an optional value. It allows to reset the retry strategy by passing in anil
value. #1729 - ๐ The
placeholder
view builder ofKFImage
now works when it gets changed instead of using its initial value forever. #1707 - ๐ Some minor performance improvement. #1739 @fuyoufang
- ๐ The
LocalFileImageDataProvider
now loads data in a background queue by default. This prevents loading performance issue when the loading is created on main thread. #1764 @ConfusedVorlon - Respect transition for SwiftUI view when using
KFImage
. #1767 - A type of
AuthenticationChallengeResponsable
. Now useAuthenticationChallengeResponsible
instead. #1780 @fakerlogic - An issue that
AnimatedImageView
dose not change thetintColor
for templated images. #1786 @leonpesdk - A crash when loading a GIF image in iOS 13 and below. #1805 @leonpesdk
โ Remove
- โฌ๏ธ Drop support for iOS 10/11, macOS 10.13/10.14, tvOS 10/11 and watch OS 3/4. #1802
- โช The workaround of
KFImage.loadImmediately
is not necessary anymore due to the model switching to@StateObject
. The interface is kept for backward compatibility, but it does nothing in the new version. #1707
- ๐ Rewrite SwiftUI support based on