Initializer

init(_:text:onCommit:)

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

Declaration 宣言

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

Parameters パラメータ

title

The 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