Skip to content

Instantly share code, notes, and snippets.

@Rusti18
Created October 11, 2022 04:41
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/5daac5ea760e3df749c0d06c7ca9c3c8 to your computer and use it in GitHub Desktop.
Save Rusti18/5daac5ea760e3df749c0d06c7ca9c3c8 to your computer and use it in GitHub Desktop.
SwiftUIPT-Ep2-G2
import SwiftUI
struct BusinessCardList: View {
var body: some View {
List {
BusinessCard(
imageName: "man",
name: "Jack Doe",
occupation: "Plumber",
workplace: "Plumbers LLC"
)
BusinessCard(
imageName: "man",
name: "John Doe",
occupation: "Dentist",
workplace: "Dentists LLC"
)
}
}
}
struct BusinessCardList_Previews: PreviewProvider {
static var previews: some View {
BusinessCardList()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment