<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Text/TruncationMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4TextV14TruncationModeO"
  },
  "title" : "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.

```
enum TruncationMode
```

## 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(_:)`](/documentation/SwiftUI/View/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`](/documentation/SwiftUI/Text/TruncationMode/head)

Truncate at the beginning of the line.

[`Text.TruncationMode.middle`](/documentation/SwiftUI/Text/TruncationMode/middle)

Truncate in the middle of the line.

[`Text.TruncationMode.tail`](/documentation/SwiftUI/Text/TruncationMode/tail)

Truncate at the end of the line.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)