Expo UI and Router for iOSExpo SDK 57 and later, iOS only
Modifiers

bold

Makes text bold. When applied to Text, it works on all iOS/tvOS versions. When used on regular views, it requires iOS 16.0+/tvOS 16.0+.

bold()

Makes text bold. When applied to Text, it works on all iOS/tvOS versions. When used on regular views, it requires iOS 16.0+/tvOS 16.0+.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

You can add bold to any view. It changes what you see on 35 of the 39 components.

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt changes only text and SF Symbols, and Spacer shows neither.
DividerIt changes only text and SF Symbols, and Divider shows neither.
SliderIt changes only text and SF Symbols, and Slider shows neither.
AccessoryWidgetBackgroundIt changes only text and SF Symbols, and AccessoryWidgetBackground shows neither.

Sources

The original Expo docs for this page:

  • bold (Modifiers) (source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)

On this page