Created
October 11, 2022 05:04
-
-
Save Rusti18/c42b0ab8ba96fda621a0eee3768bc566 to your computer and use it in GitHub Desktop.
SwiftUIPT-Ep2-G3
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_Scroll: View { | |
var body: some View { | |
ScrollView { | |
VStack { | |
BusinessCard( | |
imageName: "man", | |
name: "Jack Doe", | |
occupation: "Plumber", | |
workplace: "Plumbers LLC" | |
) | |
BusinessCard( | |
imageName: "man", | |
name: "John Doe", | |
occupation: "Dentist", | |
workplace: "Dentists LLC" | |
) | |
} | |
} | |
} | |
} | |
struct BusinessCardList_Scroll_Previews: PreviewProvider { | |
static var previews: some View { | |
BusinessCardList_Scroll() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment