app-reviews/Libraries/Foundation/Kit/Sources/Extensions/JSONDecoder+Constants.swift

23 lines
417 B
Swift
Raw Normal View History

//
// JSONDecoder+Constants.swift
// ReviewsiTunesKit
//
// Created by Javier Cicchelli on 17/03/2024.
// Copyright © 2024 Röck+Cöde VoF. All rights reserved.
//
import Foundation
extension JSONDecoder {
// MARK: Constants
public static let `default` = {
let decoder = JSONDecoder()
decoder.dateDecodingStrategy = .iso8601
return decoder
}()
}