---
title: Text.TruncationMode
framework: swiftui
role: symbol
role_heading: Enumeration
path: swiftui/text/truncationmode
---

# Text.TruncationMode

The type of truncation to apply to a line of text when it’s too long to fit in the available space.

## Declaration

```swift
enum TruncationMode
```

## Overview

Overview When a text view contains more text than it’s able to display, the view might truncate the text and place an ellipsis (…) at the truncation point. Use the truncationMode(_:) modifier with one of the TruncationMode values to indicate which part of the text to truncate, either at the beginning, in the middle, or at the end.

## Topics

### Getting text truncation modes

- [Text.TruncationMode.head](swiftui/text/truncationmode/head.md)
- [Text.TruncationMode.middle](swiftui/text/truncationmode/middle.md)
- [Text.TruncationMode.tail](swiftui/text/truncationmode/tail.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Fitting text into available space

- [textScale(_:isEnabled:)](swiftui/text/textscale(_:isenabled:).md)
- [Text.Scale](swiftui/text/scale.md)
