Contents

textScale(_:isEnabled:)

Applies a text scale to the text.

Declaration

func textScale(_ scale: Text.Scale, isEnabled: Bool = true) -> Text

Parameters

  • scale:

    The text scale to apply.

  • isEnabled:

    If true the text scale is applied; otherwise text scale is unchanged.

Return Value

Text with the specified scale applied.

See Also

Fitting text into available space