Generic Structure

TextField

A control that displays an editable text interface.

Declaration

struct TextField<Label> where Label : View

Overview

You can customize the appearance and interaction of a text field using a TextFieldStyle instance. The system resolves this configuration at runtime. Each platform provides a default style that reflects the platform style, but you can provide a new style that redefines all text field instances within a particular environment.

Relationships

Conforms To

See Also

Text

struct Text

A view that displays one or more lines of read-only text.

struct SecureField

A control into which the user securely enters private text.

struct Font

An environment-dependent font.