I'm trying to enable drop in my app. When a user drags an image into the app, i would like to present the cursor above the drag preview. I would like to adjust the drag preview's position relative the touch point. E.x. If a user begins a drag with their finger in the center of the image, once the drag session enter's my view, the image will move down such that the top of the image is directly under the finger. This behavior occurs in the iOS Notes app.
How can this be accomplished?
I find hope in the UIDropProposal's precise property. According to the docs:
/ Set `precise` to true to specify that this drop interaction wants to handle the drop
* in a precise way, e.g. dropping into text. The drag system may move the drag point
* away from the touch in order to make it easier to hit a small target.
*/
What is the consequence of setting this boolean to true? Now that I've set it, how do I "move the drag point away from the touch in order to make it easier to hit a small target." Are there hooks to control this behavior?
Thanks for any help!