diff --git a/SDWebImageSwiftUI/Classes/ImageManager.swift b/SDWebImageSwiftUI/Classes/ImageManager.swift index efad3a4..58a8c63 100644 --- a/SDWebImageSwiftUI/Classes/ImageManager.swift +++ b/SDWebImageSwiftUI/Classes/ImageManager.swift @@ -11,18 +11,15 @@ import Combine import SDWebImage class ImageManager : ObservableObject { - var willChange = PassthroughSubject() - var didChange = PassthroughSubject() + + var objectWillChange = PassthroughSubject() private var manager = SDWebImageManager.shared private weak var currentOperation: SDWebImageOperation? = nil var image: Image? { willSet { - willChange.send(self) - } - didSet { - didChange.send(self) + objectWillChange.send(self) } }