Nuke Versions Save

Image loading system

11.6.3

1 year ago
  • Fix warnings in Xcode 14.3

12.0.0-beta.3

1 year ago
  • ImageCache uses 20% of available RAM which is quite aggressive. It's a good default on iOS because it clears 90% of the used RAM when entering the background to be a good citizen. But it's not a good default on a Mac where the app is constantly running, and the RAM usage is highly visible. Starting with Nuke 12, the default size is now strictly limited by 512 MB.
  • Move all video-related code to a separate module NukeVideo, so that the users who don't need it, which are the majority, don't need to pay the extra compile time / code size price. With this and other changes in Nuke 12, if you install NukeUI, you are now adding 25% less code to your project compared to Nuke 11.
  • Remove ImageContainer.asset. The asset is now added to ImageContainer/userInfo under the new .videoAssetKey.
  • Make _PlatformImageView internal (was public)
  • Fix an issue with FetchImage/progress not delivering updates
  • FetchImage/progress is now created lazily
  • Remove callbacks from FetchImage
  • FetchImage/image now returns Image instead of PlatformImage

12.0.0-beta.2

1 year ago
  • Extract progress from FetchImage to a separate observable object and reduce a number of body reloads
  • Disable animations by default

See also: Nuke 12.0 (Beta 1) changes

12.0.0-beta.1

1 year ago

Warning: This is an early preview. The documentation hasn't been updated yet.

NukeUI 2.0

NukeUI started as a separate repo, but the initial production version was released as part of Nuke 11. Let's call it NukeUI 1.0. The framework was designed before the AsyncImage announcement and had a few discrepancies that made it harder to migrate from AsyncImage. This release addresses the shortcomings of the original design.

NukeUI 2.0 was developed closely with the open-source Ice Cubes app for Mastodon, and every single line in LazyImage was optimized to achieve the best performance possible.

Starting with NukeUI 2.0, LazyImage uses SwiftUI.Image to display images and eliminates any discrepancies between LazyImage and AsyncImage layout and self-sizing behavior. And the previously used NukeUI.Image was removed so it no longer conflicts with SwiftUI.Image.

NukeUI 1.0 tried to do too much in terms of rendering images which is not its primary responsibility – loading images is. The original design resulted in a convoluted and poorly composable API where LazyImage would know too much about how the images are rendered. This is no longer the case.

  • LazyImage now uses SwiftUI.Image for rendering images and the layout/sizing behavior matches AsyncImage exactly
  • Remove Image, ImageView, ImageResizingMode
  • Add LazyImage initializer that accepts content and placeholder closures (the same as AsyncImage)
  • Add scale parameter to LazyImage initializer
  • Fix #669: redacted not working for LazyImage
  • GIF rendering is no longer included in the framework. To enable it, use one of the frameworks that support GIF directly, such as Gifu
  • Video support is also disabled by default (this is subject to change)

Warning: GIF and video rendering are now disabled by default

Deprecations

This release also removes the APIs deprecated in the previous versions of the framework

11.6.2

1 year ago
  • Fix an issue with static GIFs not rendered correctly – #667 by @Havhingstor

11.6.1

1 year ago
  • Fix #653: ImageView wasn't calling prepareForReuse on its animatedImageView

11.6.0

1 year ago
  • Fix #579: ImageEncoders.ImageIO losing image orientation - #643
  • Fully deprecate previously soft-deprecated ImageRequestConvertible - #642
  • Add isCompressionEnabled option to DataCache that enables compression using Apple’s lzfse algorithm
  • Add ExpressibleByStringLiteral conformance to ImageRequest
  • Make compatible with Swift 6 mode
  • Now distributed with precompiled xcframeworks as an alternative installation option

11.5.3

1 year ago

11.5.1

1 year ago
  • Fix ImagePipeline.shared warning when Strict Concurrency Checking set to Complete
  • Fix an issue where ImagePrefetcher/didComplete wasn't called in some scenarios
  • ImagePrefetcher/didComplete is now called on the main queue

11.5.0

1 year ago

Changes

  • DataLoader/delegate now gets called for all URLSession/delegate methods, not just the ones required by Pulse. It allows you to modify DataLoader behavior in new ways, e.g. for handling authentication challenges.
  • Fix an issue with ImagePrefetcher/didComplete not being called when images are in the memory cache, thanks to @0xceed - #635
  • Move .docc folders back to Sources/, so that the Nuke docs are now again available in Xcode
  • Add new unit tests, thanks to @zzmasoud - #626

New Contributors