---
title: "textViewWritingToolsDidEnd(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextviewdelegate/textviewwritingtoolsdidend(_:)"
---

# textViewWritingToolsDidEnd(_:)

Tells the delegate that the current writing tools session ended.

## Declaration

```swift
optional func textViewWritingToolsDidEnd(_ textView: UITextView)
```

## Parameters

- `textView`: The text view that ended a writing tools session.

## Mentioned in

Customizing Writing Tools behavior for UIKit views

## Discussion

Discussion Use this method to undo any actions you took at the start of a writing tools session to modify your app’s behavior.  The text view calls this method after the writing session finishes. At this point, the text view contains the final text the person chose.

## See Also

### Responding to writing tools interactions

- [textViewWritingToolsWillBegin(_:)](uikit/uitextviewdelegate/textviewwritingtoolswillbegin(_:).md)
- [textView(_:writingToolsIgnoredRangesInEnclosingRange:)](uikit/uitextviewdelegate/textview(_:writingtoolsignoredrangesinenclosingrange:).md)
