Contents

init(prompt:label:onSubmit:)

Creates a TextFieldLink which when pressed will request text input from the user.

Declaration

nonisolated init(prompt: Text? = nil, @ViewBuilder label: () -> Label, onSubmit: @escaping (String) -> Void)

Parameters

  • prompt:

    Text which describes the reason for requesting text input.

  • label:

    A view that describes the action of requesting text input.

  • onSubmit:

    An action to perform when text input has been accepted and dismissed

See Also

Creating a text field link