Created
August 20, 2020 11:39
-
-
Save dmytro-anokhin/6a974fd1a17ab5705c33d9893162aa0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension DecodableRemoteContent where Decoder == JSONDecoder { | |
convenience init(urlSession: URLSession = .shared, url: URL, type: Value.Type) { | |
self.init(urlSession: urlSession, url: url, type: type, decoder: JSONDecoder()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment