Skip to main content
.textCase(case: TextCase): Component
case
TextCase
required
The text transformation to apply: "uppercase" or "lowercase".

Support

Usage

Uppercase

Text("hello world")
    .textCase("uppercase")

Lowercase

Text("LOUD TEXT")
    .textCase("lowercase")

Section headers

VStack({ alignment: "leading", spacing: 8 }, [
    Text("Featured")
        .textCase("uppercase")
        .font("caption")
        .foregroundStyle(Color("gray"))
        .tracking(500),
    Text("Today's top picks")
        .font("title2"),
])