Skip to content

Commit

Permalink
fix: add more frameworks to available
Browse files Browse the repository at this point in the history
  • Loading branch information
beatt83 committed Jan 28, 2024
1 parent 8f38334 commit bcc3b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PeerDID/Helpers/JSONEncoder+Helper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcc3b57

Please sign in to comment.