Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmytro-anokhin/6a974fd1a17ab5705c33d9893162aa0d to your computer and use it in GitHub Desktop.
Save dmytro-anokhin/6a974fd1a17ab5705c33d9893162aa0d to your computer and use it in GitHub Desktop.
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