Created
June 9, 2021 08:41
-
-
Save iosdevie/628e72f54b2a44d28cdc9aed302f7695 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Form{ | |
TextField("Email", text: $field1) | |
SecureField("Password", text: $field2) | |
TextField("Name", text: $field3) | |
.submitScope(false) //setting true won't submit the values | |
} | |
.onSubmit { | |
print(field1) | |
print(field2) | |
print(field3) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment