Skip to main content
.bold(isActive?: boolean)
isActive
boolean
default:"true"
Whether bold is applied. Pass false to explicitly disable bold. Defaults to true.

Support

Usage

Make text bold

Text("Important")
    .bold()

Conditionally bold

Text(item.title)
    .bold(item.isUnread)

Combined with other text modifiers

Text("Headline")
    .bold()
    .italic()
    .foregroundStyle(Color("blue"))

See Also