---
title: changeInLength
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextstorage/changeinlength
---

# changeInLength

The difference between the current length of the edited range and its length before editing.

## Declaration

```swift
var changeInLength: Int { get }
```

## Discussion

Discussion This property reflects difference between the current length of the edited range and its length before editing began—that is, before the first call to the beginEditing() method or a single call to theedited(_:range:changeInLength:) method. This difference is accumulated with each call to the edited(_:range:changeInLength:) method, until the changes are finally processed. The text storage object’s delegate and layout managers can use this information to determine the nature of edits in their respective notification methods.

## See Also

### Determining the nature of changes

- [editedMask](uikit/nstextstorage/editedmask.md)
- [editedRange](uikit/nstextstorage/editedrange.md)
