Skip to content

Instantly share code, notes, and snippets.

@TungVdMiichi
Created May 17, 2020 11:03
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 TungVdMiichi/2dc6a519f08f9d27640e7c15e203d8d8 to your computer and use it in GitHub Desktop.
Save TungVdMiichi/2dc6a519f08f9d27640e7c15e203d8d8 to your computer and use it in GitHub Desktop.
struct FeedItem {
let title: String
let thumbnailURL: URL?
let isFavorite: Bool
let numberOfLike: Int
}
let items = [FeedItem(title: "title", thumbnailURL: nil, isFavorite: false, numberOfLike: 10),
FeedItem(title: "another title", thumbnailURL: URL(string: "http:b-url.com")!, isFavorite: false, numberOfLike: 20),
FeedItem(title: "even another title", thumbnailURL: URL(string: "http:c-url.com")!, isFavorite: true, numberOfLike: 30),
FeedItem(title: "even another another title", thumbnailURL: URL(string: "http:d-url.com")!, isFavorite: true, numberOfLike: 0)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment