One of the cases specified in Submit
.
Instance Method
インスタンスメソッド
submit
submitLabel(_:)
Sets the submit label for this view.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
Technology
- Swift
UI
Declaration 宣言
func submitLabel(_ submitLabel: SubmitLabel
) -> some View
Parameters パラメータ
submitLabel
Label
Discussion 議論
Form {
TextField("Username", $viewModel.username)
.submitLabel(.continue)
SecureField("Password", $viewModel.password)
.submitLabel(.done)
}