---
title: unmarkText()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uitextdocumentproxy/unmarktext()
---

# unmarkText()

Unmarks the currently marked text.

## Declaration

```swift
func unmarkText()
```

## Mentioned in

Handling text interactions in custom keyboards

## See Also

### Managing marked text

- [setMarkedText(_:selectedRange:)](uikit/uitextdocumentproxy/setmarkedtext(_:selectedrange:).md)
