Contents

cancelComposition()

Stops the current composition and replaces marked text with the original text.

Declaration

func cancelComposition()

Discussion

This method calls the method originalString: to obtain the original text and sends that text to the client using a call to the IMKTextInput protocol method insertText(_:replacementRange:)

See Also

Managing Composition