0

I want to execute performDrop() as soon as my finger is over a "droppable Area" which can be detected by using dropEntered(), without lifting the finger from the screen.

https://developer.apple.com/documentation/swiftui/dropdelegate

Is there any way to achieve this?

Jakob

jakob witsch
  • 157
  • 1
  • 1
  • 12
  • I guess it should be possible since the `dropEntered(info: DropInfo)` Using `DropInfo` you can get the itemProviders. IMHO it would be odd for the user when the drop is performed when the user moves over his / her mouse over items as it could be even accidental / unintentional – user1046037 May 25 '22 at 15:56
  • You can certainly perform what ever _action_ you want in dropEntered(). You don't have to wait until performDrop() - E.g. https://stackoverflow.com/q/72384177/978300 – Giles Nov 11 '22 at 11:13

0 Answers0