From fb7774a26eda4b77907c9a72defb3921372dc185 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Mon, 24 Oct 2022 23:09:44 -0700 Subject: [PATCH] Add equatable conformance when value is equatable --- .../ComposableArchitecture/Effects/ConcurrencySupport.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift b/Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift index 45f721027019..ea0fd233c327 100644 --- a/Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift +++ b/Sources/ComposableArchitecture/Effects/ConcurrencySupport.swift @@ -395,3 +395,9 @@ public struct UncheckedSendable: @unchecked Sendable { _modify { yield &self.value[keyPath: keyPath] } } } + +extension UncheckedSendable: Equatable where Value: Equatable { + public static func == (lhs: UncheckedSendable, rhs: UncheckedSendable) -> Bool { + lhs.value == rhs.value + } +}