Created
October 11, 2022 06:53
-
-
Save Rusti18/e78fda9c93f32dc29526102fc5449f8b to your computer and use it in GitHub Desktop.
SwiftUIPT-Ep2-G6
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 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