Contents

Deprecated initializers

Review deprecated text field initializers.

Overview

Use view modifiers to specify change and commit behaviors for a text field when replacing these initializers. Use the onSubmit(of:_:) view modifier to get the behavior provided by the onCommit parameter. Use focused(_:equals:) and FocusState to get the behavior provided by the onEditingChanged parameter.

Topics

Creating a text field with a string

Creating a text field with a value