Contents

bold(_:)

Applies a bold font weight to the text in this view.

Declaration

nonisolated func bold(_ isActive: Bool = true) -> some View

Parameters

  • isActive:

    A Boolean value that indicates whether bold font styling is added. The default value is true.

Return Value

A view with bold text.

See Also

Controlling text style