Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct ContentView: View {
@ObservedObject var viewModel: ViewModel
var body: some View {
NavigationView {
VStack {
List(viewModel.colors, id: \.objectID) { (colorItem) in
Cell(colorItem: colorItem)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment