---
title: "recordEditAction(in:newTextRange:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nstextcontentmanager/recordeditaction(in:newtextrange:)"
---

# recordEditAction(in:newTextRange:)

Records information about an edit action to the transaction.

## Declaration

```swift
func recordEditAction(in originalTextRange: NSTextRange, newTextRange: NSTextRange)
```

## Parameters

- `originalTextRange`: The range before the action.
- `newTextRange`: The corresponding range after the action.

## Discussion

Discussion The concrete subclass invokes this method for each edit action.

## See Also

### Performing transactions

- [hasEditingTransaction](uikit/nstextcontentmanager/haseditingtransaction.md)
- [performEditingTransaction(_:)](uikit/nstextcontentmanager/performeditingtransaction(_:).md)
