Created
October 7, 2019 10:51
-
-
Save rbreve/3239e6e74a87561fbdc74cd777a55587 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 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