From bcc3b57d28cd21bf53c06bb761c9c12115758323 Mon Sep 17 00:00:00 2001 From: Goncalo Frade Date: Sun, 28 Jan 2024 18:26:09 +0000 Subject: [PATCH] fix: add more frameworks to available --- Sources/PeerDID/Helpers/JSONEncoder+Helper.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PeerDID/Helpers/JSONEncoder+Helper.swift b/Sources/PeerDID/Helpers/JSONEncoder+Helper.swift index d849714..248a34d 100644 --- a/Sources/PeerDID/Helpers/JSONEncoder+Helper.swift +++ b/Sources/PeerDID/Helpers/JSONEncoder+Helper.swift @@ -10,7 +10,7 @@ import Foundation extension JSONEncoder { static func peerDIDEncoder() -> JSONEncoder { let encoder = JSONEncoder() - if #available(macOS 10.15, *) { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) { encoder.outputFormatting = [.withoutEscapingSlashes, .sortedKeys] } else { encoder.outputFormatting = .sortedKeys