Skip to content

Instantly share code, notes, and snippets.

@iosdevie
Created June 9, 2021 08: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 iosdevie/628e72f54b2a44d28cdc9aed302f7695 to your computer and use it in GitHub Desktop.
Save iosdevie/628e72f54b2a44d28cdc9aed302f7695 to your computer and use it in GitHub Desktop.
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