Skip to content

Instantly share code, notes, and snippets.

@Jpunt
Last active June 6, 2019 12:24
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 Jpunt/07027735ff7314954380ab951ba9ce95 to your computer and use it in GitHub Desktop.
Save Jpunt/07027735ff7314954380ab951ba9ce95 to your computer and use it in GitHub Desktop.
var body: some View {
List(tweets.identified(by: \.id)) { tweet in
HStack {
Text(tweet.message)
tweet.imageName.map { Image($0) } ?? Image("fallback")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment