Contents

selectPosition(at:for:completionHandler:)

Sets the selection caret to the given point.

Declaration

func selectPosition(at point: CGPoint, for request: BETextDocumentRequest, completionHandler: @escaping  @Sendable (BETextDocumentContext) -> Void)
func selectPosition(at point: CGPoint, for request: BETextDocumentRequest) async -> BETextDocumentContext

Discussion

The returned document context includes autocorrect information for the new caret location, as a convenience.

See Also

Managing selection