performDrop(info:)
Tells the delegate it can request the item provider data from the given information.
Declaration
@MainActor @preconcurrency func performDrop(info: DropInfo) -> BoolReturn Value
A Boolean that is true if the drop was successful, false otherwise.
Discussion
Incorporate the received data into your app’s data model as appropriate.
Make sure to start loading the contents of NSItemProvider instances from DropInfo within the scope of this method. Do not perform loading asynchronously on a different actor. Loading the contents may finish later, but it must start here. For security reasons, the drop receiver can access the dropped payload only before this method returns.