Contents

textScale(_:isEnabled:)

Applies a text scale to text in the view.

Declaration

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

Parameters

  • scale:

    The text scale to apply.

  • isEnabled:

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

Return Value

A view with the specified text scale applied.

See Also

Adjusting text size