Instance Method インスタンスメソッド

submitLabel(_:)

Sets the submit label for this view.

Declaration 宣言

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)
}

See Also 参照

Submission