Browse Source

Correct hash implementation for image binder

onevcat 5 years ago
parent
commit
9eade4415d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/SwiftUI/ImageBinder.swift

+ 1 - 1
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) {