Generic Structure


A control that displays an editable text interface.


struct TextField<Label> where Label : View


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.


Conforms To

See Also


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.