Contents

init(_:text:)

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

Declaration

nonisolated init(_ titleKey: LocalizedStringKey, text: Binding<String>)

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