Add
- Add
setConfigurationBackgroundImage, its cancellation method, andKF.Builder.setConfigurationBackground(to:)for buttons that useUIButton.Configuration. #2587 #2566 @onevcat @zhangyutao12 - Show eligible memory-cached images in the first render pass of
KFImageandKFAnimatedImageto reduce placeholder flashes and scroll jumps. This is enabled by default; useloadMemoryCacheSynchronously(false)to keep the previous behavior. #2590 #2589 #2490 @onevcat @esthefanielanza @dream4java - Add an opt-in
memoryPolicyto the built-in cache serializers to skip encoding when estimated memory needs exceed the available process allowance. The default remains unrestricted. The check is inactive on macOS and Simulator; on supported devices, skipped writes can reduce disk cache hits. This policy does not guarantee protection from out-of-memory termination. #2597 #2434 @onevcat @ethanwa @feather2222
Fix
- Fix a retain cycle that keeps finished download tasks, downloaded data, and options alive when using
asyncCacheTypeCheckorImagePrefetcher. #2596 @oahhariri - Preserve the real pixel size of processed images on Retina Macs, fixing incorrect crops after resizing and chained image transformations. #2595 #2097 @gxlactuss @strangeliu
- Clear
UIButton.Configuration.imagewhen removing the normal-state image, including when loading without a placeholder. UsekeepCurrentImageWhileLoadingto retain the previous image. #2588 @onevcat - Restore inherited
AnimatedImageViewinitializers on tvOS and remove obsolete weak links for SwiftUI and Combine in CocoaPods. tvOS subclasses that declareinit(frame:)orinit(image:)may need to addoverride. #2592 @onevcat