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

# Text.TruncationMode.middle

Truncate in the middle of the line.

## Declaration

```swift
case middle
```

## Discussion

Discussion Use this kind of truncation to omit characters from the middle of the string. For example, you could truncate the English alphabet as “ab…yz”.

## See Also

### Getting text truncation modes

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