deleteSelection()
Deletes the receiver’s current selection unless it’s collapsed.
Declaration
func deleteSelection()Discussion
No content is removed if the current selection is collapsed (a range is selected with the same nodes and offsets for the start and end) or if there is no current selection.
See Also
Editing Documents
replaceSelection(with:)replaceSelection(withText:)replaceSelection(withMarkupString:)replaceSelection(with:)moveToBeginningOfSentence(_:)moveToBeginningOfSentenceAndModifySelection(_:)moveToEndOfSentence(_:)moveToEndOfSentenceAndModifySelection(_:)selectSentence(_:)toggleContinuousSpellChecking(_:)toggleSmartInsertDelete(_:)canMakeTextStandardSizemakeTextStandardSize(_:)maintainsInactiveSelection