Contents

UITextSelectionRect

An encapsulation of information about a selected range of text in a document.

Declaration

@MainActor class UITextSelectionRect

Overview

This class is an abstract class and must be subclassed to be used. The system text input views provide their own concrete implementations of this class.

Subclassing Notes

If you are implementing a custom text input view, you can subclass and use your custom class to return selection-related information. When subclassing, you should override and reimplement all properties. In your custom implementations, do not call super.

Topics

Accessing the Selection Rectangle

Accessing Text-Related Attributes

Determining the Selection Status

Instance Properties

See Also

Metrics