UITextDragPreviewRenderer
Renders previews of text dragged by the user.
Declaration
@MainActor class UITextDragPreviewRendererOverview
Use this class to provide custom previews of dragged text that follows user interface guidelines and handles right-to-left text. You provide the layout manager and the range to render the preview.
Subclasses may override the adjust(firstLineRect:bodyRect:lastLineRect:textOrigin:) method to modify the detected rectangles as needed during the drag operation.