Contents

BETextDocumentContext

Information about the text surrounding a selection in a document.

Declaration

class BETextDocumentContext

Mentioned in

Overview

The BETextInput protocol’s requestDocumentContext(_:completionHandler:) and requestTextContextForAutocorrection(completionHandler:) methods provide an instance of this class to their completion handlers.

Topics

Creating a text document context

Accessing autocorrected ranges

Adding text rectangles

See Also

Replacements and AutoFill