---
title: enablesMarqueeWhenAncestorFocused
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilabel/enablesmarqueewhenancestorfocused
---

# enablesMarqueeWhenAncestorFocused

A Boolean value that determines whether the label scrolls its text while one of its containing views has focus.

## Declaration

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

## Discussion

Discussion If this value is true, then the label ignores lineBreakMode, adjustsFontSizeToFitWidth, and allowsDefaultTighteningForTruncation. The label scrolls its text when any ancestor in its view hierarchy has focus. The default value for this property is false.

## 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)
- [showsExpansionTextWhenTruncated](uikit/uilabel/showsexpansiontextwhentruncated.md)
