Created
October 11, 2022 04:41
-
-
Save Rusti18/5daac5ea760e3df749c0d06c7ca9c3c8 to your computer and use it in GitHub Desktop.
SwiftUIPT-Ep2-G2
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
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