Sets the maximum number of lines that text can occupy in this view.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
The line limit. If
nil, no line limit applies.
A view that limits the number of lines that
Text instances display.
The line limit applies to all
Text instances within this view. For example, an
HStack with multiple pieces of text longer than three lines caps each piece of text to three lines rather than capping the total number of lines across the