UITextFormattingViewControllerConfiguration

Asked on 06/19/2025

1 search

The UITextFormattingViewControllerConfiguration is a new feature introduced in iOS 18 as part of the updates to UIKit. It allows developers to customize the available controls and layout of the text formatting panel. This is done by setting a custom UITextFormattingViewControllerConfiguration using the UITextView's new textFormattingConfiguration property. If you want to opt out of the new behavior, you can set this property to nil. This feature is part of the broader text improvements in UIKit, which also include a new text highlight feature and expanded text formatting capabilities.

For more details, you can refer to the session What’s new in UIKit (16:14).

UITextFormattingViewControllerConfiguration | Ask WWDC