dragInteraction(_:prepare:completion:)
Prepares the delegate for a drag session.
Declaration
optional func dragInteraction(_ dragInteraction: BEDragInteraction, prepare session: any UIDragSession, completion: @escaping () -> Bool)Parameters
- dragInteraction:
The drag interaction that invokes this method.
- session:
The drag session for which to prepare.
- completion:
A completion handler you call after finishing drag session preparations.
Discussion
Call the completion handler when your app finishes preparing for the drag session. Call the handler as soon as possible to maintain a responsive interaction experience.
Pass true in the completion handler to indicate successful preparations; otherwise, pass false.