selectionContainerViewBelowText(for:)
Returns the container view to hold the selection-related highlight and detail views.
Declaration
optional func selectionContainerViewBelowText(for interaction: UITextSelectionDisplayInteraction) -> UIView?Parameters
- interaction:
The interaction object that manages the highlight views.
Return Value
The view in your interface you use to manage selection-related views.
Discussion
Implement this delegate method if you use a view other than your text input view to display selection-related content and highlights. The container view you specify must sit below the text input view itself. The interaction object uses the view you provide as the parent for the views that display the selection highlight, selection handles, and caret.