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

# textScale(_:isEnabled:)

Applies a text scale to text in the view.

## Declaration

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

Return Value A view with the specified text scale applied.

## See Also

### Adjusting text size

- [dynamicTypeSize(_:)](swiftui/view/dynamictypesize(_:).md)
- [dynamicTypeSize](swiftui/environmentvalues/dynamictypesize.md)
- [DynamicTypeSize](swiftui/dynamictypesize.md)
- [ScaledMetric](swiftui/scaledmetric.md)
- [TextVariantPreference](swiftui/textvariantpreference.md)
- [FixedTextVariant](swiftui/fixedtextvariant.md)
- [SizeDependentTextVariant](swiftui/sizedependenttextvariant.md)
