In our recent project, we're trying to add Dynamic Text Sizing support. Our app is supporting iOS 14 and above.
In iOS 15, we can limit the text sizing using the property maximumContentSizeCategory and minimumContentSizeCategory.
label.maximumContentmSizeCategory = .accessibilityLarge
Question - What is the alternative of maximumContentSizeCategory and minimumContentSizeCategory in iOS 14?
Use
UIApplication.shared.preferredContentSizeCategoryto decide whichpreferredContentSizeCategoryto use withUITraitCollectionExample: