Contents

textDroppableView(_:willBecomeEditableForDrop:)

Asks the delegate if a noneditable text view can accept a drop operation.

Declaration

optional func textDroppableView(_ textDroppableView: any UIView & UITextDroppable, willBecomeEditableForDrop drop: any UITextDropRequest) -> UITextDropEditability

Parameters

  • textDroppableView:

    The text view that received the drop activity.

  • drop:

    The drop request.

Return Value

A text drop editability style that indicates whether the text view can accept a drop operation.

Discussion

By default, a text view that is not editable can’t accept drop requests. However, you can change this behavior by returning the editability style UITextDropEditability.temporary or UITextDropEditability.yes in your implementation of this method. Not implementing this method is the same as returning the UITextDropEditability.no style.

See Also

Accepting a drop activity