Created
May 17, 2020 11:03
-
-
Save TungVdMiichi/2dc6a519f08f9d27640e7c15e203d8d8 to your computer and use it in GitHub Desktop.
This file contains 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
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