<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: 26.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextFormattingViewControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextFormattingViewControllerDelegate"
  },
  "title" : "UITextFormattingViewControllerDelegate"
}
-->

# UITextFormattingViewControllerDelegate

```
@protocol UITextFormattingViewControllerDelegate <NSObject>
```

## Topics

### Instance Methods

[`- (void) textFormattingDidFinish:(UITextFormattingViewController *) viewController;`](/documentation/UIKit/UITextFormattingViewControllerDelegate/textFormattingDidFinish:)

Informs the delegate that user has dismissed text formatting view controller.

[`- (void) textFormattingViewController:(UITextFormattingViewController *) viewController didChangeValue:(UITextFormattingViewControllerChangeValue *) changeValue;`](/documentation/UIKit/UITextFormattingViewControllerDelegate/textFormattingViewController:didChangeValue:)

Delegate method that will be invoked on any text formatting changes.

[`- (BOOL) textFormattingViewController:(UITextFormattingViewController *) viewController shouldPresentColorPicker:(UIColorPickerViewController *) colorPicker;`](/documentation/UIKit/UITextFormattingViewControllerDelegate/textFormattingViewController:shouldPresentColorPicker:)

If implemented, text formatting will call this method before presenting color picker controller.
Use this method to make any presentation modifications or to prevent presentation altogether.

[`- (BOOL) textFormattingViewController:(UITextFormattingViewController *) viewController shouldPresentFontPicker:(UIFontPickerViewController *) fontPicker;`](/documentation/UIKit/UITextFormattingViewControllerDelegate/textFormattingViewController:shouldPresentFontPicker:)

If implemented, text formatting will call this method before presenting font picker controller.
Use this method to make any presentation modifications or to prevent presentation altogether.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)