Skip to content

Instantly share code, notes, and snippets.

@yzhong52
Created February 16, 2020 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yzhong52/e6e461539d3fef4ef4821f3f98e8b47c to your computer and use it in GitHub Desktop.
Save yzhong52/e6e461539d3fef4ef4821f3f98e8b47c to your computer and use it in GitHub Desktop.
Building a Client App From Scratch
import Foundation
class Article: Decodable {
let title: String
let description: String?
let url: URL
let urlToImage: String?
let content: String?
}
class ArticlesResponse: Decodable {
let totalResults: Int
let articles: [Article]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment