submitLabel(_:)
Sets the submit label for this view.
Declaration
nonisolated func submitLabel(_ submitLabel: SubmitLabel) -> some View
Parameters
- submitLabel:
One of the cases specified in Submitlabel.
Discussion
Form {
TextField("Username", $viewModel.username)
.submitLabel(.continue)
SecureField("Password", $viewModel.password)
.submitLabel(.done)
}