Multiline Text & Alignment
Control line limits, wrapping, and text alignment.
When Text Gets Long
Short labels fit on one line, but paragraphs wrap. This lesson shows how to control wrapping, line limits, and alignment for longer text. 📝
Text Wraps by Default
SwiftUI wraps long text onto multiple lines automatically when there is room. You usually do not need to do anything for basic wrapping.
Text("A fairly long sentence that will wrap onto more than one line.")All lessons in this course
- Fonts, Weight & Color
- Multiline Text & Alignment
- Loading Images from Assets
- Using SF Symbols