Initializer

init(_:text:)

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

Declaration 宣言

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

Parameters パラメータ

titleKey

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

text

The text to display and edit.

See Also 参照

Creating a Text Field with a String