Created
May 25, 2021 03:30
-
-
Save barefeettom/4c499121ea747158c142893ede00e62d to your computer and use it in GitHub Desktop.
Part of the tutorial series "Build an App Like Lego, using SwiftUI". https://medium.com/p/38b1b1f06cba/
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
extension NewsCell { | |
init(article: Article) { | |
self.init( | |
image: Image(article.smallImageName), | |
text: Text(article.title), | |
detailText: Text(article.detail), | |
tertiaryText: Text(String(describing: article.date)), | |
largeImage: Image(article.largeImageName) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment