Created
March 24, 2020 17:12
-
-
Save KarenK1995/d16f9232380be8bceb324edc2e3cb9ec 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
let data = ... | |
do { | |
let user = try JSONDecoder().decode(User.self, from: data) | |
} | |
catch { | |
print(error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment