Initializer

init(_:text:onCommit:)

Creates an instance. 1つのインスタンスを作成します。

Declaration 宣言

init(_ titleKey: LocalizedStringKey, text: Binding<String>, onCommit: @escaping () -> Void)
Available when Label is Text. LabelTextである時に利用可能です。

Parameters パラメータ

titleKey

The key for the localized title of self, describing its purpose.

text

The text to display and edit.

onCommit

The action to perform when the user performs an action (usually pressing the Return key) while the secure field has focus.

See Also 参照

Deprecated Initializers