Initializer

init(_:text:onEditingChanged:)

Creates a text field with a text label generated from a title string.

Declaration 宣言

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

Parameters パラメータ

title

The title of the text view, describing its purpose.

text

The text to display and edit.

onEditingChanged

The action to perform when the user begins editing text and after the user finishes editing text. The closure receives a Boolean value that indicates the editing status: true when the user begins editing, false when they finish.

See Also 参照

Creating a Text Field with a String