From 7918704815048da9e9953ebf61ad8b292687a16d Mon Sep 17 00:00:00 2001 From: VMLe <98025780+VMLe@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:17:15 +0300 Subject: [PATCH] fix: Bug with AnyHashable coercion for non-iOS platforms (apollographql/apollo-ios-dev#517) --- Sources/ApolloAPI/DataDict.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ApolloAPI/DataDict.swift b/Sources/ApolloAPI/DataDict.swift index 5cd254f561..e6f53873a9 100644 --- a/Sources/ApolloAPI/DataDict.swift +++ b/Sources/ApolloAPI/DataDict.swift @@ -174,7 +174,7 @@ extension DataDict { /// we need to do some additional unwrapping and casting of the values to avoid crashes and other /// run time bugs. public static let _AnyHashableCanBeCoerced: Bool = { - if #available(iOS 14.5, *) { + if #available(iOS 14.5, macOS 11.3, tvOS 14.5, watchOS 7.4, *) { return true } else { return false