---
title: SizeDependentTextVariant
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/sizedependenttextvariant
---

# SizeDependentTextVariant

The size dependent variant preference allows the text to take the available space into account when choosing the variant to display.

## Declaration

```swift
struct SizeDependentTextVariant
```

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [TextVariantPreference](swiftui/textvariantpreference.md)

## See Also

### Adjusting text size

- [textScale(_:isEnabled:)](swiftui/view/textscale(_:isenabled:).md)
- [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)
