adjustSelection(by:completionHandler:)
Adjusts the selection using a range.
Declaration
func adjustSelection(by range: BEDirectionalTextRange, completionHandler: @escaping @Sendable () -> Void)func adjustSelection(by range: BEDirectionalTextRange) asyncDiscussion
The argument value is a character count. The start of the current selection moves by range.offset characters, and the length of the selection changes by range.length characters.
For example, if the current selection is a word “world” in “Hello world” and the range is { -6, -2 }, the selected text after adjustment is “Hel”.