Interface UITextSelectionHighlightView

  • All Superinterfaces:
    UICoordinateSpace

    public interface UITextSelectionHighlightView
    extends UICoordinateSpace
    [@protocol] UITextSelectionHighlightView A view that displays a tinted highlight behind rendered text to indicate selection. When a selection is ranged (i.e., length is > 0), a highlight view is shown to indicate the selected text range. API-Since: 17.0
    • Method Detail

      • selectionRects

        @NotNull
        @NotNull NSArray<? extends UITextSelectionRect> selectionRects()
        A collection of @c UITextSelectionRects representing the geometry of the current selection. Rects are expected to be in the receiver's coordinate space.
      • setSelectionRects

        void setSelectionRects​(@NotNull
                               @NotNull NSArray<? extends UITextSelectionRect> value)
        A collection of @c UITextSelectionRects representing the geometry of the current selection. Rects are expected to be in the receiver's coordinate space.