<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIContentSizeCategory",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIContentSizeCategory"
  },
  "title" : "UIContentSizeCategory"
}
-->

# UIContentSizeCategory

Constants that indicate the preferred size of your content.

```
struct UIContentSizeCategory
```

## Topics

### Font sizes

[`UIContentSizeCategoryUnspecified`](/documentation/UIKit/UIContentSizeCategory/unspecified)

An unspecified font size.

[`UIContentSizeCategoryExtraSmall`](/documentation/UIKit/UIContentSizeCategory/extraSmall)

An extra-small font.

[`UIContentSizeCategorySmall`](/documentation/UIKit/UIContentSizeCategory/small)

A small font.

[`UIContentSizeCategoryMedium`](/documentation/UIKit/UIContentSizeCategory/medium)

A medium-sized font.

[`UIContentSizeCategoryLarge`](/documentation/UIKit/UIContentSizeCategory/large)

A large font.

[`UIContentSizeCategoryExtraLarge`](/documentation/UIKit/UIContentSizeCategory/extraLarge)

An extra-large font.

[`UIContentSizeCategoryExtraExtraLarge`](/documentation/UIKit/UIContentSizeCategory/extraExtraLarge)

A font that is larger than the extra-large font but smaller than the largest font size available.

[`UIContentSizeCategoryExtraExtraExtraLarge`](/documentation/UIKit/UIContentSizeCategory/extraExtraExtraLarge)

The largest font size.

### Accessibility sizes

[`UIContentSizeCategoryAccessibilityMedium`](/documentation/UIKit/UIContentSizeCategory/accessibilityMedium)

A medium font size that reflects the current accessibility settings.

[`UIContentSizeCategoryAccessibilityLarge`](/documentation/UIKit/UIContentSizeCategory/accessibilityLarge)

A large font size that reflects the current accessibility settings.

[`UIContentSizeCategoryAccessibilityExtraLarge`](/documentation/UIKit/UIContentSizeCategory/accessibilityExtraLarge)

An extra-large font size that reflects the current accessibility settings.

[`UIContentSizeCategoryAccessibilityExtraExtraLarge`](/documentation/UIKit/UIContentSizeCategory/accessibilityExtraExtraLarge)

A font that is larger than the extra-large font but not the largest available, reflecting the current accessibility settings.

[`UIContentSizeCategoryAccessibilityExtraExtraExtraLarge`](/documentation/UIKit/UIContentSizeCategory/accessibilityExtraExtraExtraLarge)

The largest font size that reflects the current accessibility settings.

[`isAccessibilityCategory`](/documentation/UIKit/UIContentSizeCategory/isAccessibilityCategory)

A Boolean value that indicates whether the content size category is associated with accessibility.

### Font size change notifications

[`UIContentSizeCategoryDidChangeNotification`](/documentation/UIKit/UIContentSizeCategory/didChangeNotification)

A notification that posts when the user changes the preferred content size setting.

[`UIContentSizeCategoryNewValueKey`](/documentation/UIKit/UIContentSizeCategory/newValueUserInfoKey)

A key that reflects the new preferred content size.

### Font size category creation

[`init(rawValue:)`](/documentation/UIKit/UIContentSizeCategory/init(rawValue:))

Creates a new instance with the specified raw value.

[`init(_:)`](/documentation/UIKit/UIContentSizeCategory/init(_:)-9l1kn)

Creates a content size category from the specified SwiftUI content size category.

[`init(_:)`](/documentation/UIKit/UIContentSizeCategory/init(_:)-abz4)

Creates a content size category from the specified SwiftUI Dynamic Type size.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Comparable`](/documentation/Swift/Comparable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)