From 768dc15e6f52d82c277aab732b02de96ccecaeb7 Mon Sep 17 00:00:00 2001 From: onevcat Date: Wed, 10 Feb 2021 15:09:22 +0900 Subject: [PATCH] Correct hash implementation for image binder --- Sources/SwiftUI/ImageBinder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftUI/ImageBinder.swift b/Sources/SwiftUI/ImageBinder.swift index a1c9522f7..9a9a73964 100644 --- a/Sources/SwiftUI/ImageBinder.swift +++ b/Sources/SwiftUI/ImageBinder.swift @@ -139,7 +139,7 @@ extension KFImage { @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *) extension KFImage.ImageBinder: Hashable { static func == (lhs: KFImage.ImageBinder, rhs: KFImage.ImageBinder) -> Bool { - return lhs === rhs + lhs.source == rhs.source && lhs.options.processor.identifier == rhs.options.processor.identifier } func hash(into hasher: inout Hasher) {