Created
June 6, 2019 06:58
-
-
Save JasperH8g/2f5b1fac54b93cd185c2dae110ce5d40 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
var body: some View { | |
List(tweets.identified(by: \.id)) { tweet in | |
HStack { | |
Text(tweet.message) | |
IfLet(tweet.imageName) { imageName in | |
Image(imageName) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment