performEditingTransaction(for:using:)
Performs an editing transaction on the text storage.
Declaration
func performEditingTransaction(for textStorage: NSTextStorage, using transaction: () -> Void)Parameters
- textStorage:
The text storage.
- transaction:
The block to execute within the transaction.