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

# adjustsFontForContentSizeCategory

A Boolean that indicates whether the object automatically updates its font when the device’s content size category changes.

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

## Discussion

Set the value of this property to <doc://com.apple.documentation/documentation/Swift/true> to allow the element to update its font when the size category changes. Set the value to <doc://com.apple.documentation/documentation/Swift/false> to ignore the size category changes.

For this property to take effect, the element’s font must be vended one of the following ways:

- It must be vended using the [`preferredFont(forTextStyle:)`](/documentation/UIKit/UIFont/preferredFont(forTextStyle:)) or [`preferredFont(forTextStyle:compatibleWith:)`](/documentation/UIKit/UIFont/preferredFont(forTextStyle:compatibleWith:)) method with a valid text style.
- It must be vended using one of the scaling methods from [`UIFontMetrics`](/documentation/UIKit/UIFontMetrics).

Because fonts are immutable, any element that adjusts for an updated content size category doesn’t modify the font itself. Instead, the element replaces the assigned font with a new instance based on the original settings.

If you set this property to <doc://com.apple.documentation/documentation/Swift/true>, the element adjusts for a new content size category on a [`didChangeNotification`](/documentation/UIKit/UIContentSizeCategory/didChangeNotification).

---

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)