The horizontal alignment for multi-line text. One of
"leading", "center", or "trailing".Support
Usage
Center-aligned text
Trailing-aligned text
Combined with frame alignment
Notes
- This modifier only affects text that wraps to multiple lines. Single-line text alignment is controlled by the parent container’s alignment or the
.frame()alignment. - The default alignment is
"leading".
See Also
- lineLimit — limits the number of displayed lines
- lineSpacing — adjusts spacing between lines