Created
June 9, 2018 23:48
-
-
Save farhan-syed/454bb49121ae21450bedf99b3b577573 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
genericFetch(urlString: "https://jsonplaceholder.typicode.com/posts") { (posts: [Post]) in | |
print(posts.forEach({print("title: \($0.title)\n body:\($0.body)\n\n")})) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment