Parameters
The font width value that adjusts horizontal scaling of the font.
Sets the font width (condensed/expanded) for text components.
.fontWidth(width: FontWidth): Component;
Show FontWidth Values
"compressed" - Most condensed font width"condensed" - Condensed font width"standard" - Normal font width (default)"expanded" - Expanded font widthText("Compressed Text")
.fontWidth("compressed")
.frame({ width: 100 })
VStack([
Text("LABEL")
.fontWidth("condensed")
.font(.caption)
.foregroundStyle(Color("secondary")),
Text("Main Content")
.fontWidth("standard")
])