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

# textFormattingViewController(_:shouldPresentFontPicker:)

## Declaration

```swift
@MainActor func textFormattingViewController(_ viewController: UITextFormattingViewController, shouldPresentFontPicker fontPicker: UIFontPickerViewController) -> Bool
```
