---
title: "textFormattingViewController(_:shouldPresentColorPicker:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextformattingviewcontroller/delegate-swift.protocol/textformattingviewcontroller(_:shouldpresentcolorpicker:)"
---

# textFormattingViewController(_:shouldPresentColorPicker:)

## Declaration

```swift
@MainActor func textFormattingViewController(_ viewController: UITextFormattingViewController, shouldPresentColorPicker colorPicker: UIColorPickerViewController) -> Bool
```
