Last active
March 16, 2022 21:38
-
-
Save GerardPaligot/71f7c6f8335ce551fb008de6e1c4775c to your computer and use it in GitHub Desktop.
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
var body: some View { | |
VStack { | |
// Generate form UI | |
Form { | |
// Generate section UI | |
Section { | |
TextField("Your email address*", text: $email) | |
.keyboardType(.emailAddress) | |
TextField("Your first name*", text: $firstName) | |
TextField("Your last name*", text: $lastName) | |
TextField("Your company", text: $company) | |
} | |
if let uiImage = qrCode { | |
Section { | |
Image(uiImage: uiImage) | |
.resizable() | |
.frame(width: 250, height: 250, alignment: .center) | |
} | |
} | |
Section { | |
Button("Create QRCode") { | |
onValidation(email, firstName, lastName, company) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment