---
title: showsExpansionTextWhenTruncated
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilabel/showsexpansiontextwhentruncated
---

# showsExpansionTextWhenTruncated

A Boolean value that determines whether the full text of the label displays when the pointer hovers over the truncated text.

## Declaration

```swift
var showsExpansionTextWhenTruncated: Bool { get set }
```

## Discussion

Discussion A label may truncate text too long to fit in its container based on the value of the label’s lineBreakMode property. To provide the option in your app to show the full text when the pointer hovers over the truncated text, set showsExpansionTextWhenTruncated to true. The default value is false.

note: Text expansion is available in iPhone and iPad apps running on a Mac with Apple silicon and in Mac apps built with Mac Catalyst.

## See Also

### Accessing the text attributes

- [text](uikit/uilabel/text.md)
- [attributedText](uikit/uilabel/attributedtext.md)
- [font](uikit/uilabel/font.md)
- [textColor](uikit/uilabel/textcolor.md)
- [textAlignment](uikit/uilabel/textalignment.md)
- [lineBreakMode](uikit/uilabel/linebreakmode.md)
- [lineBreakStrategy](uikit/uilabel/linebreakstrategy.md)
- [isEnabled](uikit/uilabel/isenabled.md)
- [enablesMarqueeWhenAncestorFocused](uikit/uilabel/enablesmarqueewhenancestorfocused.md)
