<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UILabel/adjustsFontSizeToFitWidth",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UILabel(py)adjustsFontSizeToFitWidth"
  },
  "title" : "adjustsFontSizeToFitWidth"
}
-->

# adjustsFontSizeToFitWidth

A Boolean value that determines whether the label reduces the text’s font size to fit the title string into the label’s bounding rectangle.

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

## Discussion

Normally, the label draws the text with the font you specify in the [`font`](/documentation/UIKit/UILabel/font) property. If this property is <doc://com.apple.documentation/documentation/Swift/true>, and the text in the [`text`](/documentation/UIKit/UILabel/text) property exceeds the label’s bounding rectangle, the label reduces the font size until the text fits or it has scaled the font down to the minimum font size. The default value for this property is <doc://com.apple.documentation/documentation/Swift/false>. If you change it to <doc://com.apple.documentation/documentation/Swift/true>, be sure that you also set an appropriate minimum font scale by modifying the [`minimumScaleFactor`](/documentation/UIKit/UILabel/minimumScaleFactor) property. This autoshrinking behavior is only intended for use with a single-line label.

To enable [`adjustsFontSizeToFitWidth`](/documentation/UIKit/UILabel/adjustsFontSizeToFitWidth) in Interface Builder, choose Minimum Font Scale from the Autoshrink pop-up menu in the label’s Attributes inspector.

## See Also

[`minimumFontSize`](/documentation/UIKit/UILabel/minimumFontSize)

The size of the smallest permissible font when drawing the label’s text.

[`font`](/documentation/UIKit/UILabel/font)

The font of the text.

[`enablesMarqueeWhenAncestorFocused`](/documentation/UIKit/UILabel/enablesMarqueeWhenAncestorFocused)

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



---

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)