From c3bed082d32c188d498887a75f1ea274b951aabe Mon Sep 17 00:00:00 2001 From: kean Date: Thu, 27 Jan 2022 17:05:23 -0500 Subject: [PATCH] Deprecate DisappearBehavior.reset --- CHANGELOG.md | 1 + Sources/LazyImage.swift | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fad5855..5179cd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## Upcoming - Add `DisappearBehavior.lowerPriority` - [#33](https://github.com/kean/NukeUI/pull/33), thanks to [Peter Kurzok](https://github.com/pkurzok) +- Deprecate `DisappearBehavior.reset` (crashy) - Add more options to control video: loop, finish callback – [#32](https://github.com/kean/NukeUI/pull/32), thanks to [Son Changwoo](https://github.com/kor45cw) - Fix GIF playback when using customizing image view using `LazyImageState` - [#34](https://github.com/kean/NukeUI/issues/34) diff --git a/Sources/LazyImage.swift b/Sources/LazyImage.swift index 68497ac..fb62c44 100644 --- a/Sources/LazyImage.swift +++ b/Sources/LazyImage.swift @@ -134,8 +134,7 @@ public struct LazyImage: View { } public enum DisappearBehavior { - /// Resets the image clearing all the used memory along with the - /// presentation state. + @available(*, deprecated, message: "Please use cancel instead.") case reset /// Cancels the current request but keeps the presentation state of /// the already displayed image.