---
title: "textView(_:willBeginFormattingWith:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextviewdelegate/textview(_:willbeginformattingwith:)"
---

# textView(_:willBeginFormattingWith:)

## Declaration

```swift
optional func textView(_ textView: UITextView, willBeginFormattingWith viewController: UITextFormattingViewController)
```

## Parameters

- `viewController`: The text formatting controller that is being presented.

## Discussion

Discussion Informs the delegate that text formatting controller is about to be presented.
