---
title: "textScale(_:isEnabled:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/text/textscale(_:isenabled:)"
---

# textScale(_:isEnabled:)

Applies a text scale to the text.

## Declaration

```swift
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

Return Value Text with the specified scale applied.

## See Also

### Fitting text into available space

- [Text.Scale](swiftui/text/scale.md)
- [Text.TruncationMode](swiftui/text/truncationmode.md)
