<!--
{
  "availability" : [
    "tvOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UILabel/enablesMarqueeWhenAncestorFocused",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UILabel(py)enablesMarqueeWhenAncestorFocused"
  },
  "title" : "enablesMarqueeWhenAncestorFocused"
}
-->

# enablesMarqueeWhenAncestorFocused

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

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

## Discussion

If this value is <doc://com.apple.documentation/documentation/Swift/true>, then the label ignores [`lineBreakMode`](/documentation/UIKit/UILabel/lineBreakMode), [`adjustsFontSizeToFitWidth`](/documentation/UIKit/UILabel/adjustsFontSizeToFitWidth), and [`allowsDefaultTighteningForTruncation`](/documentation/UIKit/UILabel/allowsDefaultTighteningForTruncation). The label scrolls its text when any ancestor in its view hierarchy has focus.

The default value for this property is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)