Skip to content

Instantly share code, notes, and snippets.

@rbreve
Created October 7, 2019 10:51
Show Gist options
  • Save rbreve/3239e6e74a87561fbdc74cd777a55587 to your computer and use it in GitHub Desktop.
Save rbreve/3239e6e74a87561fbdc74cd777a55587 to your computer and use it in GitHub Desktop.
struct ContentView: View {
@ObservedObject var fetcher = MovieFetcher()
var body: some View {
VStack {
List(fetcher.movies) { movie in
VStack (alignment: .leading) {
Text(movie.name)
Text(movie.released)
.font(.system(size: 11))
.foregroundColor(Color.gray)
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment