Contents

addShortcut(_:)

Adds a text-replacement shortcut to the edit dictionary.

Declaration

optional func addShortcut(_ sender: Any?)

Parameters

  • sender:

    The object calling this method.

Discussion

To present the standard system UI for adding text-replacement shortcuts, call addShortcut(forText:from:) in your implementation of this method.

See Also

Finding and replacing text