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

# textView(_:didBeginFormattingWith:)

## Declaration

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

## Parameters

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

## Discussion

Discussion Informs the delegate that text formatting controller has been presented.
