The difference between the current length of the edited range and its length before editing began.
- iOS 7.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
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
begin method or a single call to the
edited: method. This difference is accumulated with each call to the
edited: 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.