Contents

monospaced(_:)

Modifies the font of the text to use the fixed-width variant of the current font, if possible.

Declaration

nonisolated func monospaced(_ isActive: Bool = true) -> Text

Parameters

  • isActive:

    A Boolean value that indicates whether monospaced styling is added. Default value is true.

Return Value

Monospaced text.

See Also

Styling the view’s text