Structure

UIContentSizeCategory

Constants indicating the preferred size of your content.

Declaration

struct UIContentSizeCategory

Topics

Sizes

static let accessibilityMedium: UIContentSizeCategory

A medium font size reflecting the current accessibility settings.

static let accessibilityLarge: UIContentSizeCategory

A large font size reflecting the current accessibility settings.

static let accessibilityExtraLarge: UIContentSizeCategory

An extra large font size reflecting the current accessibility settings.

static let accessibilityExtraExtraLarge: UIContentSizeCategory

An extra extra large font size reflecting the current accessibility settings.

static let accessibilityExtraExtraExtraLarge: UIContentSizeCategory

A really huge font size reflecting the current accessibility settings.

Size Change Notifications

static let didChangeNotification: NSNotification.Name

Posted when the user changes the preferred content size setting.

static let newValueUserInfoKey: String

A key whose value is an NSString object reflecting the new value of the preferredContentSizeCategory property.

Instance Properties

var isAccessibilityCategory: Bool

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

Operator Functions

static func < (UIContentSizeCategory, UIContentSizeCategory) -> Bool

Returns a Boolean value indicating whether the left-hand category represents a text size than the text size associated with the right-hand category.

static func <= (UIContentSizeCategory, UIContentSizeCategory) -> Bool

Returns a Boolean value indicating whether the left-hand category represents a text size smaller than or equal to the text size associated with the right-hand category.

static func > (UIContentSizeCategory, UIContentSizeCategory) -> Bool

Returns a Boolean value indicating whether the left-hand category represents a text size greater than the text size associated with the right-hand category.

static func >= (UIContentSizeCategory, UIContentSizeCategory) -> Bool

Returns a Boolean value indicating whether the left-hand category represents a text size greater than or equal to the text size associated with the right-hand category.

Relationships

See Also

Getting the Font Sizing Preference

var preferredContentSizeCategory: UIContentSizeCategory

The font sizing option preferred by the user.

static let newValueUserInfoKey: String

A key whose value is an NSString object reflecting the new value of the preferredContentSizeCategory property.

static let didChangeNotification: NSNotification.Name

Posted when the user changes the preferred content size setting.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software