Asks the delegate for the array of drag items for an impending drag interaction.
- iOS 11.0+
- Mac Catalyst 13.0+
The interaction asking for the drag items.
The current drag session.
An array of drag items to include in the drag session, or an empty array if there are no drag items for the session.
As part of enabling dragging from a view, implement this method to return an array of one or more drag items. The system calls this method and uses this array to populate the drag session’s
If the drag items represent model objects in your app that are shown in a linear order, return them in the natural first-to-last order that users expect. The system handles any order-flipping required for right-to-left scripts.
Typically, the system shows multiple dragged items as a stack of images, with the array’s first element on top. If you return an empty array, the system does not start a drag interaction.