Jun 12, 2022
- Fix an issue with video playback not resuming when retruning from background - #46, thanks to Andy Meagher
Apr 3, 2022
- Fix an issue with previous custom
contentView
not removed on reuse - #40, thanks to Jon Funkhouser
Jan 27, 2022
- Add
DisappearBehavior.lowerPriority
- #33, thanks to Peter Kurzok - Deprecate
DisappearBehavior.reset
(crashy) - Add more options to control video: loop, finish callback – #32, thanks to Son Changwoo
- Fix GIF playback when using customizing image view using
LazyImageState
- #34
Oct 26, 2021
- Update to Nuke 10.5 (video support moved to Nuke)
Aug 29, 2021
- Fix a compilation issue on Catalyst - #16
Jul 26, 2021
- Fix an issue with incorrect
source
change handling - #14
Jul 18, 2021
- Fix an issue with video decoder not being registered automatically for
LazyImage
- #495
Jul 8, 2021
- Revert the changes to
Image
sizing behavior. Now it again simply takes all the available space and you can useresizingMode
to change the image rendering behavior.
Jun 11, 2021
- Fix default placeholder color for
LazyImage
- Update
LazyImageView
to matchLazyImage
in terms of the default parameters: placeholder and animation
Jun 11, 2021
- Add
ImageView
(UIKit, AppKit) andImage
(SwiftUI) components that support animated images and are now used byLazyImageView
- Remove
LazyImageView
API for setting image, useImageView
directly instead - Fix reloading when the source changes but view identity is the same
- All views now support video rendering by default
- Rename
contentMode
toresizingMode
LazyImage
custom initialized now suggestNukeUI.Image
Jun 10, 2021
- Rework
LazyImage
to useFetchImage
on all platforms - Add new
init(source:content:)
initializer toLazyImage
:
LazyImage(source: $0) { state in
if let image = state.image {
image // Displays the loaded image
} else if state.error != nil {
Color.red // Indicates an error
} else {
Color.blue // Acts as a placeholder
}
}
- Add default placeholder to
LazyImage
(gray background) - Temporarily increase
LazyImage
supported platforms to iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 10.16 LazyImage
on watchOS now has an almost complete feature parity with other platforms. The main exception is the support for animated images which is currently missing.- Remove
LazyImage
initializer that takeImageContainer
– useLazyImageView
directly instead - Add infrastructure for registering custom rendering engines:
import SwiftSVG
// Affects both all `LazyImage` and `LazyImageView` instances
LazyImageView.registerContentView {
if $0.type == .svg, let string = $0.data.map( {
UIView(SVGData: data)
}
return nil
}
Jun 6, 2021
- Extend watchOS support
- Add animated images support on macOS
- Display a GIF preview until it is ready to be played (Nuke 10.2 feature)
- Fix how images are displayed on macOS by default
Jun 4, 2021
- Allow user interaction during animated transitions
- Animated transitions are now supported for video
- Add access to the underlying
videoPlayerView
, remove separatevideoGravity
property - Add
isLooping
property toVideoPlayerView
which istrue
by default - Add
contentView
where all content views (both images and video) are displayed. It simplified animations.
Jun 3, 2021
- Display the first frame of the video as a preview until the video is downloaded and ready to be played
- Enable video rendering by default. The option renamed from
isExperimentalVideoSupportEnabled
toisVideoRenderingEnabled
. - Make sure video doesn't prevent the display from sleeping by setting
preventsDisplaySleepDuringVideoPlayback
tofalse
- Add video support on macOS
- Optimize performance during scrolling
Jun 1, 2021
- Initial release