Text ModifieriOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+
Overloads
2 ways to call compose().bold(). Each is one SwiftUI overload, picked by the arguments you pass.
compose().bold(isActive: boolean)nonisolated func bold(_ isActive: Bool) -> TextParameters
isActive*booleanA Boolean value that indicates whether text has bold styling.
Return value
Bold text.
See also
More in Text modifiers.
- accessibilityHeadingSets the accessibility level of this heading.
- accessibilityLabelAdds a label to the view that describes its contents.
- accessibilityTextContentTypeSets an accessibility text content type.
- baselineOffsetSets the vertical offset for the text relative to its baseline.
- fontSets the default font for text in the view.
- fontDesignSets the font design of the text.
- fontWeightSets the font weight of the text.
- fontWidthSets the font width of the text.
- foregroundStyleSets the style of the text displayed by this view.
- italicApplies italics to the text.
- kerningSets the spacing, or kerning, between characters.
- monospacedModifies the font of the text to use the fixed-width variant of the current font, if possible.