Skip to content

Instantly share code, notes, and snippets.

@Rusti18
Created October 11, 2022 06:53
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 Rusti18/e78fda9c93f32dc29526102fc5449f8b to your computer and use it in GitHub Desktop.
Save Rusti18/e78fda9c93f32dc29526102fc5449f8b to your computer and use it in GitHub Desktop.
SwiftUIPT-Ep2-G6
struct BusinessCardList: View {
let viewModels = [
BusinessCardViewModel(
imageName: "man",
name: "Jack Doe",
occupation: "Plumber",
workplace: "Plumbers LLC"
),
BusinessCardViewModel(
imageName: "man",
name: "John Doe",
occupation: "Dentist",
workplace: "Dentists LLC"
),
]
var body: some View {
List(viewModels) { viewModel in
BusinessCard(viewModel: viewModel)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment