resolvedInsertionLocation(for:writingDirection:)
Returns the location for inserting the next input depending on the state of the current and secondary selections.
Declaration
func resolvedInsertionLocation(for textSelection: NSTextSelection, writingDirection: NSTextSelectionNavigation.WritingDirection) -> (any NSTextLocation)?Parameters
- textSelection:
The text selection.
- writingDirection:
The Writingdirection direction.
Return Value
Returns an NSTextLocation when the textSelection.isLogical = false AND secondarySelectionLocation != nil. Otherwise, returns nil.