Fix object will change

This commit is contained in:
seongho.hong 2019-09-12 19:14:57 +09:00
parent a7195459d9
commit ed9b95f8f1
1 changed files with 3 additions and 6 deletions

View File

@ -11,18 +11,15 @@ import Combine
import SDWebImage
class ImageManager : ObservableObject {
var willChange = PassthroughSubject<ImageManager, Never>()
var didChange = PassthroughSubject<ImageManager, Never>()
var objectWillChange = PassthroughSubject<ImageManager, Never>()
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)
}
}