minimumContentSizeCategory property

NSString? get minimumContentSizeCategory

Specify content size category limits. Setting one or both of these properties will limit the content size category for this view (and its subviews) to a minimum or a maximum value. You can use this to limit the support content size categories on part of your view hierarchy. Setting this to nil removes the limit on the minimum or maximum. Limits will be applied immediately and when future content size category updates occur.

Specifying a minimum limit that is greater than the maximum limit (or vice versa) will effectively only use the maximum limit.

Example:

// limit the support content size categories between .medium and .accessibilityExtraLarge (included). view.minimumContentSizeCategory = UIContentSizeCategoryMedium; view.maximumContentSizeCategory = UIContentSizeCategoryAccessibilityExtraLarge;

Implementation

objc.NSString? get minimumContentSizeCategory {
  objc.checkOsVersionInternal('UIView.minimumContentSizeCategory', iOS: (false, (2, 0, 0)));
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_minimumContentSizeCategory);
  return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true);
}
set minimumContentSizeCategory (NSString? value)

Specify content size category limits. Setting one or both of these properties will limit the content size category for this view (and its subviews) to a minimum or a maximum value. You can use this to limit the support content size categories on part of your view hierarchy. Setting this to nil removes the limit on the minimum or maximum. Limits will be applied immediately and when future content size category updates occur.

Specifying a minimum limit that is greater than the maximum limit (or vice versa) will effectively only use the maximum limit.

Example:

// limit the support content size categories between .medium and .accessibilityExtraLarge (included). view.minimumContentSizeCategory = UIContentSizeCategoryMedium; view.maximumContentSizeCategory = UIContentSizeCategoryAccessibilityExtraLarge;

Implementation

set minimumContentSizeCategory(objc.NSString? value) {
  objc.checkOsVersionInternal('UIView.setMinimumContentSizeCategory:', iOS: (false, (2, 0, 0)));
  _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setMinimumContentSizeCategory_, value?.ref.pointer ?? ffi.nullptr);
}