Skip to main content
.fontWidth(width: FontWidth)
width
FontWidth
required
The font width to apply. See FontWidth for available values (e.g., "compressed", "condensed", "standard", "expanded").

Support

Usage

Condensed text

Text("Condensed Heading")
    .fontWidth("condensed")

Expanded text

Text("WIDE")
    .fontWidth("expanded")

Combined with weight and design

Text("Compact Bold")
    .fontWeight("bold")
    .fontWidth("compressed")

See Also