Contents

Text and symbol modifiers

Manage the rendering, selection, and entry of text in your view.

Overview

SwiftUI provides built-in views that display text to the user, like Text and Label, or that collect text from the user, like TextField and TextEditor. Use text and symbol modifiers to control how SwiftUI displays and manages that text. For example, you can set a font, specify text layout parameters, and indicate what kind of input to expect.

To learn more about the kinds of views that you use to display text and the ways in which you can configure those views, see Text input and output.

Topics

Fonts

Dynamic type

Text style

Text layout

Multiline text

Text selection

Text entry

Find and replace

Symbol appearance

See Also

Configuring view elements