diff --git a/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift b/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift index b8833dbc..5b06a46b 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/Views/LazyResizableImage.swift @@ -30,7 +30,8 @@ public struct LazyResizableImage: View { content(state, proxy) } .processors([resizeProcessor == nil ? .resize(size: proxy.size) : resizeProcessor!]) - .onChange(of: proxy.size, initial: true) { _, newValue in + .onChange(of: proxy.size, initial: true) { oldValue, newValue in + guard oldValue != newValue else { return } debouncedTask?.cancel() debouncedTask = Task { do { try await Task.sleep(for: .milliseconds(200)) } catch { return }