From 7ecc2d33f840f3c5577a27850089f96e6c630d27 Mon Sep 17 00:00:00 2001 From: Narong Aunthee Date: Tue, 5 Nov 2024 16:46:37 +0700 Subject: [PATCH] Fixed old version compiler does not support automatic self capture in Xcode 14.2 and Swift 5.7.2 --- SDWebImageSwiftUI/Classes/ImageManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageSwiftUI/Classes/ImageManager.swift b/SDWebImageSwiftUI/Classes/ImageManager.swift index eb5ec273..7da6fc9d 100644 --- a/SDWebImageSwiftUI/Classes/ImageManager.swift +++ b/SDWebImageSwiftUI/Classes/ImageManager.swift @@ -107,7 +107,7 @@ public final class ImageManager : ObservableObject { // So previous View struct call `onDisappear` and cancel the currentOperation return } - withTransaction(transaction) { + withTransaction(self.transaction) { self.image = image self.error = error self.isIncremental = !finished